Pular para o conteúdo
Criar conta
ou
Entrar
O logotipo da documentação da Stripe
/
Pergunte à IA
Criar conta
Login
Comece já
Pagamentos
Receita
Plataformas e marketplaces
Gestão de valores
Recursos para desenvolvedores
Visão geral
Controle de versão
Changelog
Atualize sua versão da API
Faça upgrade da sua versão do SDK
Essentials
SDKs
API
Testes
Stripe CLI
    Visão geral
    Comece já
    Preenchimento automático
    Chaves da CLI
    Acionar eventos
    Fazer upgrade
    Referência
Projetos de exemplo
Ferramentas
Workbench
Dashboard de desenvolvedores
Stripe Shell
Stripe para Visual Studio Code
Recursos
Fluxos de trabalho
Destinos de evento
Alertas de integridade da StripeCarregamento de arquivos
Soluções de IA
Kit de ferramentas para agentes
Protocolo de contexto do modelo
Segurança e privacidade
Segurança
Privacidade
Extend Stripe
Desenvolva aplicativos da Stripe
Usar os aplicativos da Stripe
Parceiros
Ecossistema de parceiros
Certificação de parceiro
Página inicialRecursos para desenvolvedoresStripe CLI

Stripe CLI keys and permissions

Learn about default Stripe CLI keys generated when you run "stripe login" and their permissions.

By default, you can use your account’s secret keys to perform any API request without restriction. When you run the stripe login command to authenticate to the Stripe CLI, the CLI generates a set of restricted keys for your account (one for a sandbox, one in live mode) that are valid for 90 days.

About restricted keys

Unlike an API secret key, a restricted key generated by the Stripe CLI has restrictions on the API requests that it can perform. You can create new restricted keys in the Dashboard with different restrictions, or specify any API key using the --api-key flag.

Where keys are stored

The CLI stores the keys in the Restricted keys section on the API Keys page and your local machine in ~/.config/stripe/config.toml.

Where to find permissions

Use these steps to view the permissions associated with your restricted key:

  1. Open the API keys page.
  2. Scroll down to the Restricted keys section.
  3. Hover over the info () icon next to your CLI key name to view permissions.

Specify an API key

  1. Use the --api-key flag to specify your API secret key inline each time you send a request.
Command Line
stripe login --api-key
sk_test_BQokikJOvBiI2HlWgH4olfQ2
Esta página foi útil?
SimNão
  • Precisa de ajuda? Fale com o suporte.
  • Participe do nosso programa de acesso antecipado.
  • Confira nosso changelog.
  • Dúvidas? Fale com a equipe de vendas.
  • LLM? Read llms.txt.
  • Powered by Markdoc