Skip to content
Create account
or
Sign in
The Stripe Docs logo
/
Ask AI
Create account
Sign in
Get started
Payments
Revenue
Platforms and marketplaces
Money management
Developer resources
Overview
Versioning
Changelog
Upgrade your API version
Upgrade your SDK version
Essentials
SDKs
API
Testing
Stripe CLI
    Overview
    Install the CLI
    Use the CLI
    Enable autocompletion
    CLI keys
    Trigger events
    Upgrade the CLI
Sample projects
Tools
Workbench
Developers Dashboard
Stripe Shell
Stripe for Visual Studio Code
Features
Workflows
Event Destinations
Stripe health alertsFile uploads
AI solutions
Agent toolkit
Model Context Protocol
Security and privacy
Security
Stripebot web crawler
Privacy
Extend Stripe
Build Stripe apps
Use apps from Stripe
Partners
Partner ecosystem
Partner certification
HomeDeveloper resourcesStripe CLI

Enable autocompletion for the Stripe CLI

Let the Stripe CLI automatically complete your commands.

Use the stripe completion command to enable autocompletion in MacOs and Linux. After you enable autocomplete, you can type a command and press the tab key to view available commands and flags. Windows autocompletion is currently not supported.

Use Zsh to set up autocompletion

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

Use Bash to set up autocompletion

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
Was this page helpful?
YesNo
  • Need help? Contact Support.
  • Join our early access programme.
  • Check out our changelog.
  • Questions? Contact Sales.
  • LLM? Read llms.txt.
  • Powered by Markdoc