sincecutoff.com
← all changes

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 login
stripe switch context [<account_id>] [--live]
stripe login list stripe reauth

WHY 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

Check the installed version and the source before using it. Entry JSON

Report a problem with this card