Command reference

Use the Paid CLI to manage Paid resources from your terminal.

Install

$npm install -g @paid-ai/cli

Authentication

Save a Paid API key for this machine. Opens the API keys page, prompts for a key, and sets the active profile.

$paid init

By default, init creates a sandbox profile labelled Sandbox.

$paid init --api-key paid_xxx
FlagDescription
--api-key <key>Save this API key instead of prompting.
--env <name>Create or update a named profile and make it active.
--env-type <type>Label the profile, for example Sandbox or Production.
--base-url <url>Save a custom API URL for the profile.

Show the active profile and API URL.

$paid env

Select a profile for one command:

$paid --env production env

Switch the active environment profile.

$paid env switch production

Resources

Create, list, retrieve, and update products.

$paid product list

Create, list, retrieve, update, and delete customers. Retrieve credit balances and upsert customer users.

$paid customer list

Create, list, retrieve, update, and delete customer contacts.

$paid contact list

Create, activate, list, retrieve, update, and delete orders. List order lines, manage order seats and seat assignments.

$paid order list

List invoices, retrieve an invoice, update an invoice, and list invoice lines.

$paid invoice list

Send signals in bulk.

$paid signal create-bulk --file ./signals.json

Create, list, retrieve, and archive checkout links.

$paid checkout list

List credit currencies.

$paid credit currencies

Create customer portal sessions.

$paid customer-portal create --file ./portal.json

Sync, list, retrieve, refresh, seal, archive, unarchive, publish, and unpublish value receipts.

$paid value-receipt list

List, retrieve, and update pricing configurations.

$paid pricing list

Ingest costs.

$paid cost create-bulk --file ./costs.json

List, update, and test webhooks.

$paid webhook list

Request Bodies

Commands that accept JSON bodies support three input styles.

Shorthand fields

Pass fields directly as key=value pairs.

$paid customer create name="Acme Corp" externalId=acme

--file

Read JSON from a file.

$paid customer create --file ./customer.json

--stdin

Read JSON from stdin.

$cat customer.json | paid customer create --stdin

Global Options

Global options can be used with any command.

$paid product list --api-key paid_xxx --timeout-ms 30000
FlagDescription
--api-key <key>Use this API key for the command.
--base-url <url>Use this API URL for the command.
--env <name>Use a saved profile for the command.
--timeout-ms <ms>Set the HTTP timeout in milliseconds.
--helpShow command help.
--versionShow the CLI version.

Environment Variables

VariableDescription
PAID_API_KEYAPI key to use when --api-key is not provided.
PAID_BASE_URLAPI URL to use when --base-url is not provided.
PAID_ENVSaved profile name to use.
PAID_ACTIVE_ENVIRONMENTSaved profile name to use when PAID_ENV is not set.