The Posthog CLI
> posthog-cli
)
Env-based Authentication
You can authenticate with PostHog interactively for using the CLI locally, but if you'd like to use it in a CI/CD pipeline, we recommend using these environment variables:
POSTHOG_CLI_TOKEN: A posthog person API key.POSTHOG_CLI_ENV_ID: The ID number of the project/environment to connect to. E.g. the "2" inhttps://us.posthog.com/project/2
Releases
Releases are cut by pushing a release tag to the repository, for the posthog-cli app. Generally we want to do this on a branch,
and bump the package version number at the same time.
# Bump version number in Cargo.toml
We manage publishing releases through cargo-dist
We release semi-regularly, as new features are added. If a release breaks your CI or workflow, please open an issue on GitHub, and tag one or all of the crate authors