stripe-ez
v1.1.2
Published
Set up Stripe payments in under 5 minutes with a guided CLI
Downloads
1,344
Maintainers
Readme
stripe-ez
Zero-friction Stripe setup CLI.
stripe-ez walks you through Stripe setup and generates the files you need to start taking payments quickly.
Links
- Website: stripe-ez.com
- Repository: github.com/garrettsiegel/stripe-ez
- Sponsor: github.com/sponsors/garrettsiegel
- Ko-fi: ko-fi.com/garrettsiegel
- Contributing: CONTRIBUTING.md
- Changelog: CHANGELOG.md
What It Does
- Guides Stripe authentication (Stripe CLI login or manual API key)
- Creates products and prices for one-time payments, subscriptions, or donations
- Supports checkout modes: hosted checkout, payment links, or embedded flows
- Optionally configures webhooks, customer portal, and tax behavior
- Generates local config, public config,
.env, and framework-specific starter snippets
Prerequisites
- Node.js 18+
- A Stripe account
Stripe CLI is optional, but recommended for easiest auth and local webhook testing.
Quick Start
Run the CLI directly with npx:
npx stripe-ezThat command launches the guided setup.
Easiest First Run
- Run
npx stripe-ez. - Choose
testmode. - Pick Stripe CLI login when prompted (recommended).
- Select your product type and checkout type.
- Let stripe-ez generate your config and snippet output.
Common Commands
Use npx stripe-ez for everything:
npx stripe-ez
npx stripe-ez init
npx stripe-ez add-product
npx stripe-ez status
npx stripe-ez resetYou can also hide the startup banner:
npx stripe-ez --no-bannerWhat You Get
After setup, stripe-ez can generate:
.stripe-ez.json(private local state)stripe-config.json(safe public app config).env(private secrets and IDs)- Framework starter snippets (Next.js, Express, React, Vanilla, Raw)
- Payment link URLs (when payment links are enabled)
Add Products Later
If you already have a setup and want to add more products:
export STRIPE_SECRET_KEY=YOUR_STRIPE_SECRET_KEY
npx stripe-ez add-productCheck Your Setup
Show local config summary:
npx stripe-ez statusCheck Stripe connectivity too:
STRIPE_SECRET_KEY=YOUR_STRIPE_SECRET_KEY npx stripe-ez statusLocal Webhook Testing
If your webhook endpoint is local, forward Stripe events with Stripe CLI:
stripe listen --forward-to http://localhost:3000/api/webhooks/stripeThen set STRIPE_WEBHOOK_SECRET in your .env.
Safety Tips
Before sharing your repo, remove local secrets:
rm -f .env .stripe-ez.jsonNeed More Details?
For contributor and release workflow documentation, see CONTRIBUTING.md and CHANGELOG.md.
