@posthog/cli
Advanced tools
+4
-0
| # posthog-cli | ||
| # 0.7.16 | ||
| - feat: add `--dry-run` flag (and `POSTHOG_CLI_DRY_RUN` env var) to skip artifact uploads (sourcemap, dSYM, Hermes, ProGuard) without contacting PostHog or requiring credentials — for CI gates that bundle to catch regressions but must not upload. | ||
| # 0.7.15 | ||
@@ -4,0 +8,0 @@ |
@@ -22,3 +22,3 @@ { | ||
| "name": "@posthog/cli", | ||
| "version": "0.7.15" | ||
| "version": "0.7.16" | ||
| }, | ||
@@ -52,3 +52,3 @@ "node_modules/detect-libc": { | ||
| "requires": true, | ||
| "version": "0.7.15" | ||
| "version": "0.7.16" | ||
| } |
+2
-2
| { | ||
| "artifactDownloadUrls": [ | ||
| "https://github.com/PostHog/posthog/releases/download/posthog-cli/v0.7.15" | ||
| "https://github.com/PostHog/posthog/releases/download/posthog-cli/v0.7.16" | ||
| ], | ||
@@ -117,3 +117,3 @@ "bin": { | ||
| }, | ||
| "version": "0.7.15", | ||
| "version": "0.7.16", | ||
| "volta": { | ||
@@ -120,0 +120,0 @@ "node": "18.14.1", |
+12
-0
@@ -18,2 +18,3 @@ # The Posthog CLI | ||
| --host <HOST> The PostHog host to connect to [default: https://us.posthog.com] | ||
| --dry-run Skip artifact processing and upload without contacting PostHog or requiring credentials | ||
| -h, --help Print help | ||
@@ -35,2 +36,13 @@ -V, --version Print version | ||
| ## Skipping uploads (dry run) | ||
| Pass `--dry-run` before the subcommand (`posthog-cli --dry-run hermes upload ...`), or set `POSTHOG_CLI_DRY_RUN=true`, to turn the upload commands — `sourcemap`, `dsym`, `hermes`, and `proguard` — into a no-op. | ||
| The CLI logs that it skipped the upload and exits `0` without contacting PostHog or requiring credentials. | ||
| (This top-level flag is separate from the `exp endpoints` `--dry-run`, which previews endpoint changes.) | ||
| This is meant for CI gates that still want to run the bundling step (to catch Metro/Hermes or sourcemap regressions) but must not — or cannot — upload artifacts, for example pull-request checks that don't have PostHog credentials. | ||
| Do not use it for release builds, since no symbols are uploaded. | ||
| The env var accepts the usual truthy/falsy values (`true`/`false`, `1`/`0`, `yes`/`no`, `on`/`off`). | ||
| ### Personal API key scopes | ||
@@ -37,0 +49,0 @@ |
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 2 instances in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 2 instances in 1 package
30155
4.26%58
26.09%