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
70
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.15
to
0.7.16
+4
-0
CHANGELOG.md
# 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 @@

+2
-2

@@ -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"
}
{
"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",

@@ -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 @@