polar products to polar webhooks. Each command makes one API call to the active organization and prints the result as JSON.
Terminal
polar auth login --sandbox, then polar auth org. See Authentication.
Command names
Commands are namedpolar <resource> <action>, in snake case. The names match the MCP operations and the OpenAPI operation names:
Run
polar <resource> --help to see every command and flag of a resource, or open the command reference.
Output
Commands print the API response as JSON, colored in a terminal and plain when piped. Pick fields with--fields, comma-separated, with dots for nested fields:
Terminal
GET command, an unknown field is an error that lists the available fields. Combine with jq in scripts:
Terminal
Input
Each body or query field has its own flag, in kebab case:external_id is --external-id. Flags for objects and arrays take JSON.
--data (-d) takes the whole input as one JSON object. Explicit flags replace matching top-level keys, so you can combine the two:
Terminal
false, empty strings and JSON null are sent as given.
To clear a nullable value, pass null:
Terminal
"null", use --data.
When an input is a union, such as a custom field’s type, pass its discriminator even if it doesn’t change:
Terminal
Organizations
Commands use the active organization, and its environment. The CLI sends the organization in thePolar-Organization header, so results are scoped to it. Resource commands have no environment flag, except the customer_seats commands that run without a login (see below).
To use another organization for one command, pass --org. It selects that organization’s environment and credentials for the request without changing the active one:
Terminal
POLAR_ACCESS_TOKEN set, commands use the token’s organization and POLAR_ENVIRONMENT (production by default). An organization access token belongs to one organization. See CI and headless use.
Destructive commands
Deleting, and some updates, ask for confirmation. The CLI fetches and shows the record, then waits for you to typeyes:
- Every
deletecommand. - Archiving a product or meter:
--is-archived=true. - Revoking, canceling or pausing a subscription:
--revoke=true,--cancel-at-period-end=trueor--pause-at-period-end=true. - Disabling a webhook endpoint:
--enabled=false. - Revoking or disabling a license key, and rotating one.
- A refund that revokes benefits:
--revoke-benefits=true.
--confirm (-c) to skip the prompt. It’s required when there’s no interactive terminal, for example in CI or from a coding agent:
Terminal
Preview commands
A few commands call API version2027-01 because the operation doesn’t exist in 2026-10 yet. Their description ends with “(preview, API 2027-01)”, for example polar customer_meters credits and polar meters get_external. Their input can still change.
Without a login
polar customer_seats get_claim_info and polar customer_seats claim_seat take a seat invitation token and need no login or organization. They default to production. Pass --environment=sandbox for sandbox invitations.

