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
stripe login --api-keysk_test_4eC39HqLyjWDarjtT1zdp7dc
Your pairing code is: humour-nifty-finer-magic Press Enter to open up the browser (^C to quit)
Working with projects
--project-name flag when you log in to configure different projects. You can then run commands with
--project-name to use that configuration.
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.