@posthog/cli 0.7.17 → 0.7.20

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 CHANGED
@@ -1,213 +1,230 @@
1
1
  # posthog-cli
2
2
 
3
- # 0.7.17
3
+ ## 0.7.20 — 2026-06-05
4
+
5
+ ### Patch changes
6
+
7
+ - [81b679f143](https://github.com/PostHog/posthog/commit/81b679f14324668be61e6a3f55df04a60427ab75) Clarify the Hermes upload help text. — Thanks @cat-ph!
8
+
9
+ ## 0.7.19 — 2026-06-04
10
+
11
+ ### Patch changes
12
+
13
+ - [51fc41a92dd](https://github.com/PostHog/posthog/commit/51fc41a92dd46c8a6840152b1647dd6da6894cb9) Add help text for the SSL verification flag. — Thanks @cat-ph!
14
+ - [867f88d1e9f](https://github.com/PostHog/posthog/commit/867f88d1e9f00b922ff98f8be475f4e2839d8f7b) Clarify the CLI release tag format in the release docs. — Thanks @cat-ph!
15
+
16
+ ## 0.7.18
17
+
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.
19
+
20
+ ## 0.7.17
4
21
 
5
22
  - 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
23
 
7
- # 0.7.16
24
+ ## 0.7.16
8
25
 
9
26
  - 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
27
 
11
- # 0.7.15
28
+ ## 0.7.15
12
29
 
13
30
  - fix: make symbol upload retry logs clearer and report failed finalization explicitly.
14
31
 
15
- # 0.7.14
32
+ ## 0.7.14
16
33
 
17
34
  - feat: add `--env-file <PATH>` to load `POSTHOG_CLI_HOST`, `POSTHOG_CLI_API_KEY`, and `POSTHOG_CLI_PROJECT_ID` (and their legacy aliases) from a dotenv-style file when not set in the process environment. Credentials are resolved atomically from a single source (process env first, then the file), so `POSTHOG_CLI_HOST` from the file cannot redirect a key supplied by the process env.
18
35
 
19
- # 0.7.13
36
+ ## 0.7.13
20
37
 
21
38
  - chore: bump `cargo-dist` to 0.32.0; the new npm installer drops the bundled transitive deps that were carrying open CVEs (`axios`, `follow-redirects`, `minimatch`, `brace-expansion`)
22
39
 
23
- # 0.7.12
40
+ ## 0.7.12
24
41
 
25
42
  - feat: add `--skip-on-conflict` to symbol upload commands for keeping existing symbol sets when content differs
26
43
  - feat: add `--force` to sourcemap, Hermes, and ProGuard uploads for explicit content overwrites
27
44
 
28
- # 0.7.11
45
+ ## 0.7.11
29
46
 
30
47
  - fix: resolve release once in `process` command to avoid race condition when multiple workers run in parallel
31
48
  - fix: skip synthetic Swift CU names (e.g. `<swift-imported-modules>`) before joining with `comp_dir` so they no longer dominate the project-root prefix and reject real source files
32
49
 
33
- # 0.7.10
50
+ ## 0.7.10
34
51
 
35
52
  - feat: add `symbol-sets download` command to download symbol sets by ID or ref
36
53
  - feat: add `symbol-sets extract` command for local file extraction
37
54
  - fix: prevent ZIP path traversal in dSYM extraction
38
55
  - fix: validate symbol set ID is a UUID before download
39
56
 
40
- # 0.7.9
57
+ ## 0.7.9
41
58
 
42
59
  - feat: warn and skip empty sourcemaps (no mappings/sources/names) during upload to surface bundler misconfigurations instead of silently uploading useless symbol sets
43
60
 
44
- # 0.7.8
61
+ ## 0.7.8
45
62
 
46
63
  - feat: add `--build` flag to all upload commands (hermes, dsym, proguard, sourcemap) via shared ReleaseArgs
47
64
  - feat: build number packed into version string (`"1.0+42"`) for release uniqueness; UI splits on `+` to display version and build separately
48
65
 
49
- # 0.7.7
66
+ ## 0.7.7
50
67
 
51
68
  - fix: align `dsym upload` release flags with other upload commands by using `--release-name` / `--release-version` (with backward-compatible aliases)
52
69
  - fix: reuse shared release args in `dsym upload` so release fallback behavior matches other upload commands
53
70
 
54
- # 0.7.5
71
+ ## 0.7.5
55
72
 
56
73
  - fix: stable source bundle for dSYM uploads — CU-anchored prefix filter prevents framework sources from changing the content hash
57
74
  - fix: thin fat dSYM binaries per arch before zipping so sibling arch rebuilds don't cause content_hash_mismatch
58
75
  - fix: add `--force` flag to allow overwriting symbol sets whose content has changed
59
76
 
60
- # 0.7.4
77
+ ## 0.7.4
61
78
 
62
79
  - fix: create per-UUID ZIP for dSYM uploads
63
80
 
64
- # 0.7.3
81
+ ## 0.7.3
65
82
 
66
83
  - feat: enable symbol set compression
67
84
  - fix: fix process command reading from stdin
68
85
 
69
- # 0.7.2
86
+ ## 0.7.2
70
87
 
71
88
  - feat: allow reading files and directories from stdin
72
89
 
73
- # 0.7.1
90
+ ## 0.7.1
74
91
 
75
92
  - feat: track upload started and upload finished events
76
93
 
77
- # 0.7.0
94
+ ## 0.7.0
78
95
 
79
96
  - feat: promote dsym, hermes, and proguard commands from experimental to top-level
80
97
  - feat: keep backward-compat aliases under `exp` (hidden from help)
81
98
 
82
- # 0.6.2
99
+ ## 0.6.2
83
100
 
84
101
  - fix: endpoints now save to YAML with proper newlines
85
102
 
86
- # 0.6.1
103
+ ## 0.6.1
87
104
 
88
105
  - chore: bump `cargo-dist` version
89
106
 
90
- # 0.6.0
107
+ ## 0.6.0
91
108
 
92
109
  - Add experimental dSYM upload for iOS/macOS crash symbolication
93
110
 
94
- # 0.5.30
111
+ ## 0.5.30
95
112
 
96
113
  - Add experimental dSYM upload for iOS/macOS crash symbolication
97
114
 
98
- # 0.5.29
115
+ ## 0.5.29
99
116
 
100
117
  - chore: introduce env variable `POSTHOG_CLI_API_KEY` and `POSTHOG_CLI_PROJECT_ID` (backwards compatible)
101
118
 
102
- # 0.5.28
119
+ ## 0.5.28
103
120
 
104
121
  - chore: introduce `--release-name` and `--release-version` options (backwards compatible)
105
122
 
106
- # 0.5.27
123
+ ## 0.5.27
107
124
 
108
125
  - fix: only warns on release id mismatch errors
109
126
 
110
- # 0.5.26
127
+ ## 0.5.26
111
128
 
112
129
  - feat: use env variables provided by github actions when available
113
130
 
114
- # 0.5.24
131
+ ## 0.5.24
115
132
 
116
133
  - chore: add endpoints use case to cli auth flow
117
134
 
118
- # 0.5.23
135
+ ## 0.5.23
119
136
 
120
137
  - feat: add experimental commands for endpoints management
121
138
 
122
- # 0.5.22
139
+ ## 0.5.22
123
140
 
124
141
  - feat: add `--project` and `--version` to upload command to define release
125
142
 
126
- # 0.5.20
143
+ ## 0.5.20
127
144
 
128
145
  - chore: add global `--rate-limit` option for Posthog client
129
146
 
130
- # 0.5.19
147
+ ## 0.5.19
131
148
 
132
149
  - chore: upgrade cargo-dist to 0.30.3
133
150
 
134
- # 0.5.18
151
+ ## 0.5.18
135
152
 
136
153
  - fix: fix git info parsing in vercel environment
137
154
 
138
- # 0.5.17
155
+ ## 0.5.17
139
156
 
140
157
  - feat: add --file option to target built files directly
141
158
 
142
- # 0.5.16
159
+ ## 0.5.16
143
160
 
144
161
  - fix: cut a new version for fixing compromised package
145
162
 
146
- # 0.5.15
163
+ ## 0.5.15
147
164
 
148
165
  - Compromised
149
166
 
150
- # 0.5.14
167
+ ## 0.5.14
151
168
 
152
169
  - Fix authentication issue on sourcemap upload
153
170
 
154
- # 0.5.13
171
+ ## 0.5.13
155
172
 
156
173
  - Add `--include` option on sourcemap commands to match specific files inside directory
157
174
 
158
- # 0.5.12
175
+ ## 0.5.12
159
176
 
160
177
  - Bug fixes and improvements
161
178
 
162
- # 0.5.11
179
+ ## 0.5.11
163
180
 
164
181
  - Do not read bundle files as part of hermes sourcemap commands
165
182
  - Change hermes clone command to take two file paths (for the minified and composed maps respectively)
166
183
 
167
- # 0.5.10
184
+ ## 0.5.10
168
185
 
169
186
  - Add terminal checks for login and query command
170
187
 
171
- # 0.5.9
188
+ ## 0.5.9
172
189
 
173
190
  - Improve error handling from api
174
191
  - Reduce logs for sourcemap processing
175
192
 
176
- # 0.5.8
193
+ ## 0.5.8
177
194
 
178
195
  - Adding experimental support for proguard mappings
179
196
 
180
- # 0.5.7
197
+ ## 0.5.7
181
198
 
182
199
  - Fix bug where files point to the same sourcemap
183
200
 
184
- # 0.5.6
201
+ ## 0.5.6
185
202
 
186
203
  - Adding experimental support for hermes sourcemaps
187
204
 
188
- # 0.5.5
205
+ ## 0.5.5
189
206
 
190
207
  - When running inject command multiple times, we only update chunk ids when releases are different
191
208
 
192
- # 0.5.4
209
+ ## 0.5.4
193
210
 
194
211
  - Added no fail flag to disable non-zero exit codes on errors.
195
212
 
196
- # 0.5.3
213
+ ## 0.5.3
197
214
 
198
215
  - Add support for ignoring public path prefixes appended by bundlers to sourceMappingURLs when searching for sourcemaps
199
216
  associated with minified source code. Does not modify the sourceMappingURL as published.
200
217
 
201
- # 0.5.2
218
+ ## 0.5.2
202
219
 
203
220
  - Fixes a bug where chunks which shared a sourcemap were mishandled, leading to an error during upload in recent versions, and a silent
204
221
  failure in older versions. If you're using next, and saw an error message about "duplicate chunk IDs", this fix addresses that issue.
205
222
 
206
- # 0.5.1
223
+ ## 0.5.1
207
224
 
208
225
  - Attempts to reduce impact of previous breaking changes - re-adds `--project` and `--version` arguments to sourcemap upload command, marking them as no longer used
209
226
 
210
- # 0.5.0
227
+ ## 0.5.0
211
228
 
212
229
  - Sourcemap injection, upload and process commands made retriable. Significant improvement to release creation.
213
230
 
package/README.md CHANGED
@@ -28,9 +28,9 @@ You can authenticate with PostHog interactively for using the CLI locally, but i
28
28
  - `POSTHOG_CLI_API_KEY`: [A posthog personal API key.](https://posthog.com/docs/api#private-endpoint-authentication) (also accepts `POSTHOG_CLI_TOKEN` for backward compatibility)
29
29
  - `POSTHOG_CLI_PROJECT_ID`: The ID number of the project/environment to connect to. E.g. the "2" in `https://us.posthog.com/project/2` (also accepts `POSTHOG_CLI_ENV_ID` for backward compatibility)
30
30
 
31
- 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.
31
+ 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.
32
32
 
33
- Full precedence: CLI args → process env → `--env-file` → `~/.posthog/credentials.json` (from `posthog-cli login`).
33
+ Full precedence: CLI args → process env → `--dotenv-file` → `~/.posthog/credentials.json` (from `posthog-cli login`).
34
34
 
35
35
  ## Skipping uploads (dry run)
36
36
 
@@ -19,7 +19,7 @@
19
19
  "hasInstallScript": true,
20
20
  "license": "MIT",
21
21
  "name": "@posthog/cli",
22
- "version": "0.7.17"
22
+ "version": "0.7.20"
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.17"
51
+ "version": "0.7.20"
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.17"
3
+ "https://github.com/PostHog/posthog/releases/download/posthog-cli/v0.7.20"
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.17",
117
+ "version": "0.7.20",
118
118
  "volta": {
119
119
  "node": "18.14.1",
120
120
  "npm": "9.5.0"