Skip to content
Create account
or
Sign in
The Stripe Docs logo
/
Ask AI
Create account
Sign in
Get started
Payments
Finance automation
Platforms and marketplaces
Money management
Developer tools
Get started
Payments
Finance automation
Get started
Payments
Finance automation
Platforms and marketplaces
Money management
Overview
Versioning
Changelog
Upgrade your API version
Upgrade your SDK version
Developer tools
SDKs
API
Testing
Workbench
Event Destinations
Workflows
Stripe CLI
    Overview
    Get started
    Autocompletion
    CLI keys
    Trigger events
    Upgrade
    Reference
Stripe Shell
Developers Dashboard
Agent toolkit
Stripe health alertsBuild with LLMsStripe for Visual Studio CodeFile uploads
Security
Security
Extend Stripe
Stripe Apps
Stripe Connectors
Partners
Partner ecosystem
Partner certification
HomeDeveloper toolsStripe CLI

Enable autocompletion for the Stripe CLI

Enable autocompletion so that the Stripe CLI automatically completes your commands.

Copy page

Use the stripe completion command to enable autocompletion so that the Stripe CLI automatically completes your commands. After you enable autocomplete, you can type a command and press the tab key on your keyboard to view available commands and flags.

Setup with ZSH on macOS and Linux

Open a new ZSH shell and run the following commands:

Command Line
stripe completion mkdir -p ~/.stripe mv stripe-completion.zsh ~/.stripe

Add the following lines to your .zshrc file:

Command Line
# The next lines enables shell command completion for Stripe fpath=(~/.stripe $fpath) autoload -Uz compinit && compinit -i

Setup with Bash on macOS and Linux

Follow the instructions in bash-completion to set up bash completions.

Open a new Bash shell and run the following commands:

Command Line
stripe completion mkdir -p ~/.stripe mv stripe-completion.bash ~/.stripe

Add the following lines to your .bashrc file:

Command Line
# The next line enables shell command completion for Stripe source ~/.stripe/stripe-completion.bash

Windows

Windows autocompletion is currently not supported.

Was this page helpful?
YesNo
Need help? Contact Support.
Join our early access program.
Check out our changelog.
Questions? Contact Sales.
LLM? Read llms.txt.
Powered by Markdoc