Command: autocomplete
Description
Set up shell tab-completion for ShipThis CLI commands, topics, and flags.
tip
Autocomplete is a one-time setup. Once configured, it persists across terminal sessions and automatically covers new commands when you update the CLI.
After running shipthis autocomplete, you can press Tab to:
- Complete commands -- type
shipthis gthen Tab to complete togame - Complete subcommands -- type
shipthis gamethen Tab to list all game subcommands - Complete flags -- type
shipthis login --then Tab to see available flags
Supported shells: bash, zsh, and powershell.
Setup
Run the following command and follow the printed instructions for your shell:
After updating the CLI, refresh the autocomplete cache:
Example
Help Output
USAGE
$ shipthis autocomplete [SHELL] [-r]
ARGUMENTS
[SHELL] (zsh|bash|powershell) Shell type
FLAGS
-r, --refresh-cache Refresh cache (ignores displaying instructions)
DESCRIPTION
Display autocomplete installation instructions.
EXAMPLES
$ shipthis autocomplete
$ shipthis autocomplete bash
$ shipthis autocomplete zsh
$ shipthis autocomplete powershell
$ shipthis autocomplete --refresh-cache