Configure the Stripe CLI
The Stripe CLI can handle less common use cases through several additional flags. The most important of these are highlighted below; use --help
to see what else is possible.
Use an existing API key
By default, a new API key is generated for the Stripe CLI. To use an existing API key instead, add the --api-key
flag:
Terminal
stripe login --api-key
sk_test_4eC39HqLyjWDarjtT1zdp7dc
Output
Your pairing code is: humour-nifty-finer-magic Press Enter to open up the browser (^C to quit)
Working with projects
Use the --project-name
flag when you log in to configure different projects. You can then run commands with --project-name
to use that configuration.
Terminal autocompletion
The Stripe CLI supports autocompletion for macOS and Linux to make it easier for you to use the right commands with the CLI.
Set up autocompletion by running stripe completion
and, depending on your platform and shell, the relevant instructions are shown to you.