Passa al contenuto
Crea account
o
Accedi
Il logo della documentazione Stripe
/
Chiedi all'IA
Crea un account
Accedi
Inizia
Pagamenti
Ricavi
Per piattaforme e marketplace
Gestione del denaro
Risorse per sviluppatori
Panoramica
Controllo delle versioni
Log modifiche
Aggiorna la tua versione API
Aggiornare la versione dell'SDK
Essentials
SDK
API
Test
CLI di Stripe
    Panoramica
    Install the CLI
    Use the CLI
    Enable autocompletion
    Chiavi della CLI
    Attivare eventi
    Upgrade the CLI
Progetti di esempio
Strumenti
Workbench
Dashboard per sviluppatori
Shell di Stripe
Stripe per Visual Studio Code
Funzionalità
Flussi di lavoro
Destinazioni degli eventi
Avvisi sullo stato di StripeCaricamenti file
Soluzioni di IA
Toolkit agente
Protocollo del contesto del modello
Sicurezza e privacy
Sicurezza
Crawler web di Stripebot
Privacy
Estendi Stripe
Crea Stripe Apps
Usa le app di Stripe
Partner
Partner Ecosystem
Certificazione di partner
Pagina inizialeRisorse per sviluppatoriStripe CLI

Nota

Questa pagina non è ancora disponibile in questa lingua. Stiamo lavorando alla preparazione della nostra documentazione in più lingue e ne forniremo una traduzione non appena disponibile.

Install the Stripe CLI

Install the Stripe CLI on macOS, Windows, or Linux.

The Stripe CLI lets you build, test, and manage your integration from the command line. You can use the Stripe CLI to:

  • Create, retrieve, update, or delete any of your Stripe resources in a sandbox.
  • Stream real-time API requests and events happening in your account.
  • Trigger events to test your webhooks integration.

Install the Stripe CLI

From the command line, use an install script or download and extract a versioned archive file for your operating system to install the CLI.

To install the Stripe CLI with homebrew, run:

Command Line
brew install stripe/stripe-cli/stripe

Log in to the CLI

  1. Log in and authenticate your Stripe user account to generate a set of restricted keys. To learn more, see Stripe CLI keys and permissions.

    Command Line
    stripe login
  2. Press the Enter key on your keyboard to complete the authentication process in your browser.

    Output
    Your pairing code is: enjoy-enough-outwit-win This pairing code verifies your authentication with Stripe. Press Enter to open the browser or visit https://dashboard.stripe.com/stripecli/confirm_auth?t=THQdJfL3x12udFkNorJL8OF1iFlN8Az1 (^C to quit)

Optionally, if you don’t want to use a browser, use the --interactive flag to authenticate with an existing API secret key or restricted key. This is helpful when authenticating to the CLI without a browser, such as in a CI/CD pipeline.

Command Line
stripe login --interactive

You can also 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

Get started with a video

Watch this video to learn the different ways you can use the Stripe CLI. It covers how to configure the CLI, download sample code, and work with Stripe objects.

Caricamento del video in corso...
Questa pagina è stata utile?
SìNo
  • Hai bisogno di aiuto? Contatta l'assistenza clienti.
  • Partecipa al nostro programma di accesso anticipato.
  • Dai un'occhiata al nostro registro delle modifiche.
  • Domande? Contattaci.
  • LLM? Leggi llms.txt.
  • Realizzato da Markdoc