CLI › Shell Completion
Shell Completion
Enable tab-completion for ATF CLI commands in your shell. Supports bash, zsh, and fish.
Bash
Generate bash completion
npx @trucore/atf@1.5.1 completion bashAdd the output to your ~/.bashrc or source it directly:
Source in bashrc
npx @trucore/atf@1.5.1 completion bash >> ~/.bashrcZsh
Generate zsh completion
npx @trucore/atf@1.5.1 completion zshAdd to your ~/.zshrc:
Source in zshrc
npx @trucore/atf@1.5.1 completion zsh >> ~/.zshrcFish
Generate fish completion
npx @trucore/atf@1.5.1 completion fishSave to fish completions directory:
Save fish completion
npx @trucore/atf@1.5.1 completion fish > ~/.config/fish/completions/atf.fishVerify It Works
After sourcing the completion script, type atf and press Tab. You should see available commands like doctor, simulate, tx, and more.