Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@posthog/cli

Package Overview
Dependencies
Maintainers
20
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@posthog/cli - npm Package Compare versions

Comparing version
0.7.17
to
0.7.18
+4
-0
CHANGELOG.md
# posthog-cli
# 0.7.18
- fix: rename `--env-file` to `--dotenv-file`. The npm package runs the CLI binary through a `node` wrapper script, and Node has its own built-in `--env-file` flag — so Node intercepted the flag before it reached the binary, failing with `node: .env: not found` for a missing file. `--env-file` still works as an alias for native installs.
# 0.7.17

@@ -4,0 +8,0 @@

+2
-2

@@ -22,3 +22,3 @@ {

"name": "@posthog/cli",
"version": "0.7.17"
"version": "0.7.18"
},

@@ -52,3 +52,3 @@ "node_modules/detect-libc": {

"requires": true,
"version": "0.7.17"
"version": "0.7.18"
}
{
"artifactDownloadUrls": [
"https://github.com/PostHog/posthog/releases/download/posthog-cli/v0.7.17"
"https://github.com/PostHog/posthog/releases/download/posthog-cli/v0.7.18"
],

@@ -117,3 +117,3 @@ "bin": {

},
"version": "0.7.17",
"version": "0.7.18",
"volta": {

@@ -120,0 +120,0 @@ "node": "18.14.1",

@@ -31,5 +31,5 @@ # The Posthog CLI

These variables can also be loaded from a dotenv-style file via `--env-file <PATH>` (e.g. `posthog-cli --env-file .env query ...`). The process environment always wins; the file is only consulted if the required variables aren't set. `POSTHOG_CLI_HOST` is only read from the same source that supplied the rest, so a stray host in the file cannot redirect a key supplied by the process env.
These variables can also be loaded from a dotenv-style file via `--dotenv-file <PATH>` (e.g. `posthog-cli --dotenv-file .env query ...`). The process environment always wins; the file is only consulted if the required variables aren't set. `POSTHOG_CLI_HOST` is only read from the same source that supplied the rest, so a stray host in the file cannot redirect a key supplied by the process env.
Full precedence: CLI args → process env → `--env-file` → `~/.posthog/credentials.json` (from `posthog-cli login`).
Full precedence: CLI args → process env → `--dotenv-file` → `~/.posthog/credentials.json` (from `posthog-cli login`).

@@ -36,0 +36,0 @@ ## Skipping uploads (dry run)