Stripe CLI Cheat Sheet/Use an explicit API key

Override the configured account with a supplied API key.

Section: Install, Authenticate, and Help

Use an explicit API key

bash
bash
stripe customers list --api-key sk_test_xxx

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Install, Authenticate, and Help
Log in with the browser flow
Authenticate the CLI with your Stripe account.
OpenIn sheetbashsame section
Log out the CLI
Remove the current CLI session.
OpenIn sheetbashsame section
List current config
Display account context and config values.
OpenIn sheetbashsame section
Run a command in live mode
Target your live Stripe account explicitly.
OpenIn sheetbashsame section
Use a named profile
Run a command using a configured Stripe CLI profile.
OpenIn sheetbashsame section
Show CLI version
Print the installed Stripe CLI version.
OpenIn sheetbashsame section