Stripe CLI をインストールする
コマンドラインから直接、Stripe の組み込みを構築、テスト、および管理します。
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.
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.
CLI にログインする
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 Linestripe login
キーボードの Enter キーを押し、ブラウザーでの認証プロセスを完了します。
OutputYour 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.
stripe login --interactive
You can also use the --api-key
flag to specify your API secret key inline each time you send a request.
stripe login --api-key
sk_test_BQokikJOvBiI2HlWgH4olfQ2
動画を開始する
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.