Stripe CLI Cheat Sheet/Create a Checkout Session

Generate a hosted Checkout session for a price.

Section: Resource CRUD Patterns

Create a Checkout Session

bash
bash
stripe checkout sessions create --mode payment --success-url https://example.com/success --cancel-url https://example.com/cancel --line-items price=price_123,quantity=1

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Resource CRUD Patterns
Create a payment intent
Create a test payment intent from the terminal.
OpenIn sheetbashsame section
Create a refund
Refund a successful charge or payment intent.
OpenIn sheetbashsame section
Create a customer
Create a basic customer directly from the CLI.
OpenIn sheetbashsame section
List customers
List recent customers in your account.
OpenIn sheetbashsame section
Retrieve a customer
Fetch a single customer by ID.
OpenIn sheetbashsame section
Update a customer
Modify customer fields such as email or metadata.
OpenIn sheetbashsame section