Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

chore(cli): release v0.8.5

releaser-posthog-cli[bot]fc1864be582b
diff --git a/cli/.sampo/changesets/api-command-error-telemetry.md b/cli/.sampo/changesets/api-command-error-telemetry.md
deleted file mode 100644
index 277bacf003cb..000000000000
--- a/cli/.sampo/changesets/api-command-error-telemetry.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-cargo/posthog-cli: patch
----
-
-`posthog-cli api` failures are now diagnosable and attributable. Launch failures report the specific cause (bundle not embedded in the build, no home directory, install-directory write failure with the underlying IO error kind, Node.js missing) both in the error message and in error telemetry, instead of one generic bundle-not-found error. When the proxied Node process fails, the CLI now exits through its normal path — flushing telemetry and honoring `--no-fail` — instead of terminating immediately, and the bundled API CLI flushes its own analytics before exiting non-zero so failed calls are no longer silently dropped. The `api` command also emits the standard command-run usage event and attaches the project id from `POSTHOG_CLI_PROJECT_ID`/`POSTHOG_CLI_ENV_ID` to telemetry when stored credentials are not used.
diff --git a/cli/CHANGELOG.md b/cli/CHANGELOG.md
index 0802953aac8f..db6b39c94b0c 100644
--- a/cli/CHANGELOG.md
+++ b/cli/CHANGELOG.md
@@ -1,5 +1,11 @@
# posthog-cli
+## 0.8.5 — 2026-07-21
+
+### Patch changes
+
+- [f3a3420b95](https://github.com/PostHog/posthog/commit/f3a3420b951b9a38d75cbc811f44745585e2cba5) `posthog-cli api` failures are now diagnosable and attributable. Launch failures report the specific cause (bundle not embedded in the build, no home directory, install-directory write failure with the underlying IO error kind, Node.js missing) both in the error message and in error telemetry, instead of one generic bundle-not-found error. When the proxied Node process fails, the CLI now exits through its normal path — flushing telemetry and honoring `--no-fail` — instead of terminating immediately, and the bundled API CLI flushes its own analytics before exiting non-zero so failed calls are no longer silently dropped. The `api` command also emits the standard command-run usage event and attaches the project id from `POSTHOG_CLI_PROJECT_ID`/`POSTHOG_CLI_ENV_ID` to telemetry when stored credentials are not used. — Thanks @cvolzer3!
+
## 0.8.4 — 2026-07-16
### Patch changes
diff --git a/cli/Cargo.lock b/cli/Cargo.lock
index e1fcb94ea336..608a6e44c240 100644
--- a/cli/Cargo.lock
+++ b/cli/Cargo.lock
@@ -2085,7 +2085,7 @@ dependencies = [
[[package]]
name = "posthog-cli"
-version = "0.8.4"
+version = "0.8.5"
dependencies = [
"anyhow",
"chrono",
diff --git a/cli/Cargo.toml b/cli/Cargo.toml
index 0eb34e64284b..351898c9ff16 100644
--- a/cli/Cargo.toml
+++ b/cli/Cargo.toml
@@ -4,7 +4,7 @@ resolver = "2"
[package]
name = "posthog-cli"
-version = "0.8.4"
+version = "0.8.5"
authors = [
"David <[email protected]>",