Skip to content

Completion command

Kenneth Auchenberg edited this page Nov 2, 2019 · 7 revisions

Stripe CLI supports autocompletion for macOS and Linux to make it easier for you to use the right commands with the CLI.

You set started by setting up autocompletion by running stripe completion and depending on your platform and shell the relevant instructions are show to you.

ZSH

Running stripe completion will generate a stripe-completion.zsh file, which you'll need to either source this file or move it to zsh's autocomplete folder.

To source, run: source stripe-completion.zsh.

To load automatically, move to zsh's autocomplete directory or do a directory of your own like:

mv stripe-completion.zsh ~/.stripe

Include the directory in your $fpath, for example by adding in ~/.zshrc:

fpath=("~/.stripe" $fpath)

Curious to learn more about ZSH autocompletion scripts? We recommend, https://mads-hartmann.com/2017/08/06/writing-zsh-completion-scripts.html

Bash

TBD.

Windows

Windows is currently not supported.