Stripe CLI
The Stripe CLI is a developer tool to help you build, test, and manage your integration with Stripe directly from the command line. With the Stripe CLI, it’s easy to perform many common tasks like calling Stripe APIs, testing your webhooks integration, and creating an application.
Start with a guide
Install the Stripe CLI on macOS, Windows, and Linux and get started with a YouTube video from Developer Advocacy.
Enable autocompletion so that the Stripe CLI automatically completes your commands.
Learn about Stripe CLI keys, where they’re stored locally, and where to find their permissions.
Take advantage of the latest features of the Stripe CLI.
Use these reference guides to explore the CLI and Stripe APIs.
Tutorials
Learn how to create a subscription product using the Stripe Shell or CLI.
Learn how to subscribe a customer to a recurring payment using the Stripe Shell or CLI.
Learn how to create a customer portal that allows customers to manage an existing subscription using the Stripe Shell or CLI.
Webhook guides
Learn about webhooks and how events are triggered for your account.
Learn about events and the different ways to stream real-time events happening in your account.
Learn how to simulate Stripe events to test a webhooks integration using the stripe trigger <event>
command.
Key features
Try different combinations of API requests
The Stripe CLI gives you a command-line method to interact with the same Stripe APIs you already manage in your app and the Stripe Dashboard. Try out different combinations of API requests and test cards before you write a line of code.
Call Stripe APIs to test a webhooks integration
Use the same combination of API requests and parameters as your integration, or run the plug-and-play Stripe CLI sample code in the API reference guide. When you call Stripe APIs, we log one or more events for your account.
Simulate Stripe events to test a webhooks integration
The Stripe CLI provides event emulators using the stripe trigger <event>
command to test a webhooks integration. These simulate the service back ends to help you test your webhooks code more efficiently.