f:: CLI

Get started with the Stripe CLI | Stripe Documentation

Install the Stripe CLI

brew install stripe/stripe-cli/stripe

Log in to the CLI

Login and authenticate your Stripe user Account to generate a set of restricted keys. To learn more, see Stripe CLI keys and permissions.

stripe login
Your pairing code is: ...
This pairing code verifies your authentication with Stripe.
Press Enter to open the browser or visit https://dashboard.stripe.com/stripecli/confirm_auth?t=... (^C to quit)
> Done! The Stripe CLI is configured for Adithya Jayasankar with account id acct_...
 
Please note: this key will expire after 90 days, at which point you'll need to re-authenticate.

Run fixtures to populate your account with data

stripe fixtures fixtures/stripe-fixtures.json
Setting up fixture for: prod_hobby
Running fixture for: prod_hobby
Setting up fixture for: price_hobby_month
Running fixture for: price_hobby_month
Setting up fixture for: price_hobby_year
Running fixture for: price_hobby_year
Setting up fixture for: prod_freelancer
Running fixture for: prod_freelancer
Setting up fixture for: price_freelancer_month
Running fixture for: price_freelancer_month
Setting up fixture for: price_freelancer_year
Running fixture for: price_freelancer_year