stripe
Stripe payment platform developer CLI
TLDR
Login to Stripe
SYNOPSIS
stripe command [subcommand] [options]
DESCRIPTION
stripe is the official command-line interface for the Stripe payment platform, designed to streamline development and testing of payment integrations. It provides direct access to the Stripe API, allowing developers to create and manage resources like customers, payment intents, and subscriptions without writing code.
A key feature is webhook listening, which receives Stripe events locally and forwards them to a development server. This eliminates the need for public URLs during development. The trigger command simulates specific events like successful payments or failed charges, enabling thorough testing of webhook handlers.
The CLI also provides real-time log tailing for monitoring API requests and responses, and can open the Stripe dashboard directly. Authentication is handled through the login command, which manages API keys and supports both test and live modes.
PARAMETERS
login
Authenticate CLI.listen
Listen for webhooks.trigger EVENT
Trigger test event.logs tail
Stream logs.open
Open dashboard.--forward-to URL
Webhook destination.--api-key KEY
API key.-d, --data KEY=VALUE
Request data.
CAVEATS
Requires Stripe account. Test mode for development. API keys sensitive.
HISTORY
The Stripe CLI was released to improve developer experience. It enables local development and testing of Stripe integrations.
SEE ALSO
curl(1)
