- Manage resources. Commands for 22 API resources, from products and customers to meters and webhook endpoints. See Resource commands.
- Test webhooks. Forward your organization’s webhooks to your local server and trigger sample events. See Webhooks.
- Set up agents.
polar agent setupinstalls the Polar plugin, MCP servers and skills for Claude Code, Codex and Cursor. See Skills and plugins.
Authentication
Sign in to sandbox and production, choose the organization and create access tokens.
Resource commands
Naming, JSON input, field selection and confirmation prompts.
Webhooks
Receive real webhooks locally and trigger sample events on demand.
Command reference
Every command, argument and flag.
Installation
The CLI ships as a single binary for macOS (Apple Silicon and Intel), Linux (x64 and arm64) and Windows (x64).- macOS and Linux
- Windows
- Package managers
Terminal
polar to ~/.polar/bin and adds it to your PATH.Terminal
Terminal
polar with no arguments to see the version, the environments you’re signed in to and the active organization.
Updating
The CLI checks for new releases in the background. When one is available it says so after a command finishes, at most once a day. Install the new version with:Terminal
polar update detects how the CLI was installed. Override it with --method (binary, npm, pnpm, bun, yarn or vp).
Shell completions
Print a completion script for your shell and add it to your profile:Terminal
polar --help to list every command,
or add --help to a command, like polar products --help, to see the flags of
every command under it at once.
Telemetry
The CLI sends one anonymous event per command to help us improve it: the command name, the names of the flags used (never their values), whether it succeeded, the duration, the CLI version, your operating system, and whether it ran in CI or from an AI coding agent. Some commands add a short summary of the run, such as how it ended and the codes of any issues found. Events are keyed by a random install id. Access tokens, organization names and IDs, URLs and webhook payloads are never sent. To opt out, set either variable in your environment:Terminal
DO_NOT_TRACK=1 is honored as well.

