Manual6. Command Line and API

6. Command Line and API

The Stripe CLI and the API reach the same live account as the Dashboard.

FactPractice
Test mode is the defaultThe CLI works in test mode unless --live is passed. A lookup of a real invoice made without it finds nothing and reports no error.
Lines are separatestripe invoices retrieve <id> --expand lines --live returns an invoice with its line items. Some tools list invoices without their lines.
KeysInvoices are written with a restricted key limited to invoicing.
SecrecyKeys are never printed, logged or written into notes. A note names the key and where it is stored.

Verified November 27, 2026 against Stripe's documentation and the firm's records. References

Wetware Labs is a Kansas City software and search marketing firm. We run search programs for service businesses: technical health, local search, content and AI search.

Start with an audit