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
    Get started
    Autocompletion
    CLI keys
    Trigger events
    Upgrade
    Reference
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
Security and privacy
Security
Privacy
Extend Stripe
Build Stripe apps
Use apps from Stripe
Partners
Partner ecosystem
Partner certification
HomeDeveloper resourcesStripe CLI

Enable autocompletion for the Stripe CLI

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

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