@posthog/cli 0.7.15 → 0.7.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/README.md +12 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# posthog-cli
|
|
2
2
|
|
|
3
|
+
# 0.7.17
|
|
4
|
+
|
|
5
|
+
- fix: treat a missing `--env-file` as a warning instead of a fatal error — the CLI logs that the file wasn't found and falls back to the other credential sources (process env, then stored credentials). A file that exists but can't be read still errors.
|
|
6
|
+
|
|
7
|
+
# 0.7.16
|
|
8
|
+
|
|
9
|
+
- 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.
|
|
10
|
+
|
|
3
11
|
# 0.7.15
|
|
4
12
|
|
|
5
13
|
- fix: make symbol upload retry logs clearer and report failed finalization explicitly.
|
package/README.md
CHANGED
|
@@ -15,6 +15,7 @@ Commands:
|
|
|
15
15
|
|
|
16
16
|
Options:
|
|
17
17
|
--host <HOST> The PostHog host to connect to [default: https://us.posthog.com]
|
|
18
|
+
--dry-run Skip artifact processing and upload without contacting PostHog or requiring credentials
|
|
18
19
|
-h, --help Print help
|
|
19
20
|
-V, --version Print version
|
|
20
21
|
```
|
|
@@ -31,6 +32,17 @@ These variables can also be loaded from a dotenv-style file via `--env-file <PAT
|
|
|
31
32
|
|
|
32
33
|
Full precedence: CLI args → process env → `--env-file` → `~/.posthog/credentials.json` (from `posthog-cli login`).
|
|
33
34
|
|
|
35
|
+
## Skipping uploads (dry run)
|
|
36
|
+
|
|
37
|
+
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.
|
|
38
|
+
The CLI logs that it skipped the upload and exits `0` without contacting PostHog or requiring credentials.
|
|
39
|
+
(This top-level flag is separate from the `exp endpoints` `--dry-run`, which previews endpoint changes.)
|
|
40
|
+
|
|
41
|
+
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.
|
|
42
|
+
Do not use it for release builds, since no symbols are uploaded.
|
|
43
|
+
|
|
44
|
+
The env var accepts the usual truthy/falsy values (`true`/`false`, `1`/`0`, `yes`/`no`, `on`/`off`).
|
|
45
|
+
|
|
34
46
|
### Personal API key scopes
|
|
35
47
|
|
|
36
48
|
Commands require different API scopes. Make sure to set these scopes on your personal API key:
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"hasInstallScript": true,
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"name": "@posthog/cli",
|
|
22
|
-
"version": "0.7.
|
|
22
|
+
"version": "0.7.17"
|
|
23
23
|
},
|
|
24
24
|
"node_modules/detect-libc": {
|
|
25
25
|
"engines": {
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
"requires": true,
|
|
51
|
-
"version": "0.7.
|
|
51
|
+
"version": "0.7.17"
|
|
52
52
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"artifactDownloadUrls": [
|
|
3
|
-
"https://github.com/PostHog/posthog/releases/download/posthog-cli/v0.7.
|
|
3
|
+
"https://github.com/PostHog/posthog/releases/download/posthog-cli/v0.7.17"
|
|
4
4
|
],
|
|
5
5
|
"bin": {
|
|
6
6
|
"posthog-cli": "run-posthog-cli.js"
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
"zipExt": ".tar.gz"
|
|
115
115
|
}
|
|
116
116
|
},
|
|
117
|
-
"version": "0.7.
|
|
117
|
+
"version": "0.7.17",
|
|
118
118
|
"volta": {
|
|
119
119
|
"node": "18.14.1",
|
|
120
120
|
"npm": "9.5.0"
|