Command reference
Use the Paid CLI to manage Paid resources from your terminal.
Install
Authentication
paid init
Save a Paid API key for this machine. Opens the API keys page, prompts for a key, and sets the active profile.
By default, init creates a sandbox profile labelled Sandbox.
paid env
Show the active profile and API URL.
Select a profile for one command:
paid env switch
Switch the active environment profile.
Resources
paid product
Create, list, retrieve, and update products.
paid customer
Create, list, retrieve, update, and delete customers. Retrieve credit balances and upsert customer users.
paid contact
Create, list, retrieve, update, and delete customer contacts.
paid customer-unit
Create, list, retrieve, update, and delete a customer’s units, the customer’s internal hierarchy (departments, tenants, teams). Address the customer by its Paid id with --id, or use the -external variants with your own customer id in --external-id; units are always addressed by your key in --external-customer-unit-id. Requires @paid-ai/cli 1.2.0 or later.
paid customer-unit-cap
Set, read, and end a unit’s credit cap. Same addressing as paid customer-unit. When your organization has more than one credits currency, name it with creditsCurrencyId=… in the body of set, and with the --credits-currency-id flag on get and end.
paid order
Create, activate, list, retrieve, update, and delete orders. List order lines, manage order seats and seat assignments.
paid invoice
List invoices, retrieve an invoice, update an invoice, and list invoice lines.
paid signal
Send signals in bulk.
paid checkout
Create, list, retrieve, and archive checkout links.
paid credit
List credit currencies.
paid customer-portal
Create customer portal sessions. Deprecated: the customer portal is being retired, and this command will be removed in a future release. It keeps working for existing integrations meanwhile.
paid value-receipt
Create, list, retrieve, archive, unarchive, publish, and unpublish value receipts. Sync, refresh and seal are deprecated.
paid pricing
List, retrieve, and update pricing configurations.
paid cost
Ingest costs.
paid webhook
List, update, and test webhooks.
Request Bodies
Commands that accept JSON bodies support three input styles.
Shorthand fields
Pass fields directly as key=value pairs.
--file
Read JSON from a file.
--stdin
Read JSON from stdin.
Global Options
Global options can be used with any command.