For AI agents and LLMs: a structured documentation index is available at /llms.txt. Every page has a Markdown sibling โ€” append .md to any URL.

Skip to content
Paddle Docs home

Get started with Paddle in the CLI

Install the Paddle CLI, log in to Paddle, and run your first commands directly from your terminal.

AI summary

Install the Paddle CLI and authenticate to your sandbox account to manage products and run API commands directly from your terminal.

  • โ€ขInstallation varies by OS: use Homebrew on macOS, a curl script on Linux, or manual setup on Windowsโ€”verify success with paddle --version
  • โ€ขAlways specify --environment sandbox when logging in with your sandbox API key (containing _sdbx), or switch to production later with --environment production
  • โ€ขCLI commands map directly to Paddle API operations, so use paddle products create, paddle products list, and resource-specific --help flags to explore available commands and fields
Latest: v0.1.0 ยท 2026-10-15

This quickstart walks through installing the Paddle CLI, logging in to your sandbox account, and running your first commands in the terminal.

Before you begin

You'll need:

Install the CLI

Install paddlehq/tap/paddle with Homebrew:

Shell
brew install paddlehq/tap/paddle

Install the Paddle CLI with the install script:

Shell
curl -fsSL https://raw.githubusercontent.com/PaddleHQ/paddle-cli/main/install.sh | sh

You can also install with Homebrew. See Install the Paddle CLI.

  1. Download the Windows .zip archive from the latest GitHub release.
  2. Optionally, download the checksums.txt file from the same release and verify the archive.
  3. Extract paddle.exe from the archive to a permanent folder.
  4. Add the folder containing paddle.exe to your PATH.
  5. Open a new terminal before running any paddle commands. Terminals that were already open won't find paddle.

Don't double-click paddle.exe, because the window opens and closes right away. Run paddle commands from a terminal instead.

View the Paddle CLI on GitHub

Check that the CLI is installed:

Shell
paddle --version

For other ways to install the CLI, like building from source, see Install the Paddle CLI.

Log in to Paddle

Log in to your sandbox account with an API key:

Shell
paddle login --environment sandbox --api-key SANDBOX_API_KEY

Replace SANDBOX_API_KEY with your Paddle sandbox API key before running the command. Sandbox API keys contain _sdbx.

The CLI uses your live account by default, so include --environment sandbox. Without it, the CLI checks your sandbox key against your live account, and login fails. After you log in, the CLI keeps using your sandbox account until you switch.

To log in to your live account instead, run:

Shell
paddle login --environment production --api-key LIVE_API_KEY

You can also log in to your live account with OAuth. The CLI opens Paddle in your browser, where you log in and approve access. To learn more, see Log in with OAuth.

You can always check which account you're connected to:

Shell
paddle whoami

Run your first command

Start by listing the products that exist in your sandbox account:

Shell
paddle products list

The terminal displays the result in a table. If you don't have any products yet, the CLI shows No results. Create a product in the Paddle dashboard, or use the CLI, passing a request body as JSON:

Shell
paddle products create --json '{"name": "AeroEdit Student", "tax_category": "standard"}'

If successful, Paddle returns the details of the product, including its id. Use the ID to view the product:

Shell
paddle products get PRODUCT_ID

Replace PRODUCT_ID with the id you received from paddle products create. Product IDs start with pro_.

Find more commands

Use --help to see every command in the Paddle CLI:

Shell
paddle --help

To check commands for a specific resource, add --help after the resource name:

Shell
paddle products --help

You can also check all flags and request body fields for a resource command:

Shell
paddle products create --help

Commands for each resource match the Paddle API. paddle products create sends the same request as create a product, so you can use the API reference to see every field.

Use with an AI agent

AI coding agents like Claude Code, Cursor, Codex, and Gemini CLI can run the Paddle CLI for you using the account you're logged in to.

Ask your agent to use the Paddle CLI in your prompt, or add an instruction to your project's CLAUDE.md or AGENTS.md file so it uses the CLI every time.

Commands that delete or cancel a resource only run if the agent adds --confirm with the resource's Paddle ID to explicitly confirm the operation.

Next steps

Was this page helpful?