stripe login adds OAuth contexts and context switching
Introduced 2026-08-13 · score 0.90
HOW TO USE IT
When you need to authorize Stripe CLI access or change the active account context, use `stripe login` and select a context with `stripe switch context`. Use `stripe login list` to view authorized contexts or `stripe reauth` to authorize additional accounts or sandboxes.
stripe loginstripe switch context [<account_id>] [--live]stripe login list
stripe reauthWHY THIS HELPS
Authorize Stripe CLI contexts and select the account, sandbox, or test or live mode for resource and development commands.
REQUIREMENTS AND LIMITATIONS
- Version: v1.45.3
- Availability: OAuth flow requires a flag on the server to be enabled.
- account_id: Authorized account ID to switch to. Without it, the CLI displays an interactive list of authorized accounts and modes.
- --live: Select livemode for the given account; otherwise a direct account switch defaults to test mode.
- Prerequisite: `stripe reauth` requires an existing OAuth session; run `stripe login` to authenticate first.
- Prerequisite: Browser-based login opens the Stripe Dashboard for approval; `stripe reauth` opens the Dashboard for renewed consent.
- `stripe logout` revokes the OAuth access token and clears credentials locally.
FIRST-PARTY EVIDENCE
- https://github.com/stripe/stripe-cli/releases/tag/v1.45.3
- https://github.com/stripe/stripe-cli/pull/1880
- https://raw.githubusercontent.com/stripe/stripe-cli/v1.45.3/pkg/cmd/login.go
- https://raw.githubusercontent.com/stripe/stripe-cli/v1.45.3/pkg/cmd/switch.go
- https://raw.githubusercontent.com/stripe/stripe-cli/v1.45.3/pkg/cmd/reauth.go
Check the installed version and the source before using it. Entry JSON