posthog-cli
Installation
SKILL.md
PostHog 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.