LinuxCommandLibrary

stripe

Stripe payment platform developer CLI

TLDR

Login to Stripe

$ stripe login
copy
Listen for webhooks
$ stripe listen
copy
Forward to local server
$ stripe listen --forward-to [localhost:3000/webhook]
copy
Trigger test event
$ stripe trigger [payment_intent.succeeded]
copy
List customers
$ stripe customers list
copy
Create payment intent
$ stripe payment_intents create --amount [1000] --currency [usd]
copy
View logs
$ stripe logs tail
copy
Open dashboard
$ stripe open
copy

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)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community