About posthog-cli
posthog-cli is a skill for using PostHog’s `@posthog/cli` to upload sourcemaps for error tracking, often as part of a release process.
Key features
- 01Upload sourcemaps with `posthog-cli`
- 02Authenticate with `POSTHOG_CLI_TOKEN`
- 03Check available commands with `--help`
Use cases
- 01Upload sourcemaps during a release
- 02Use the CLI instead of handwritten API calls
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ timschoch/ skilly --skill posthog-cliAfter installing, type/posthog-cliin Claude Code to confirm it loaded.
Details
From the project READMEPostHog CLI
PostHog ships @posthog/cli (binary: posthog-cli). Use it instead of hand-written API calls.
- Upload sourcemaps for error tracking:
posthog-cli sourcemap upload - Discover more:
posthog-cli --help
Auth via POSTHOG_CLI_TOKEN (or the repo's configured env). Check the repo's build scripts — sourcemap upload is usually part of the release step.
Comments
Markdown supported