Shell Completion
Enable command and flag autocompletion for your shell.
Bash
Linux:
dot-ai completion bash | sudo tee /etc/bash_completion.d/dot-ai > /dev/null
macOS:
dot-ai completion bash > $(brew --prefix)/etc/bash_completion.d/dot-ai
Then restart your shell or source the completion file:
source $(brew --prefix)/etc/bash_completion.d/dot-ai
Zsh
dot-ai completion zsh > "${fpath[1]}/_dot-ai"
Then restart your shell or run:
compinit
Fish
dot-ai completion fish > ~/.config/fish/completions/dot-ai.fish
Then restart your shell or run:
source ~/.config/fish/completions/dot-ai.fish
What Gets Completed
Shell completion provides:
- Commands — All available CLI commands
- Flags — Global and command-specific flags
- Enum values — Valid values for flags like
--output(yaml,json) - Help — Press tab to see available options
Next Steps
- Commands Overview — Learn all available commands
- Configuration — Configure server URL and authentication