Skip to content

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 bash

Add the output to your ~/.bashrc or source it directly:

Source in bashrc

npx @trucore/atf@1.5.1 completion bash >> ~/.bashrc

Zsh

Generate zsh completion

npx @trucore/atf@1.5.1 completion zsh

Add to your ~/.zshrc:

Source in zshrc

npx @trucore/atf@1.5.1 completion zsh >> ~/.zshrc

Fish

Generate fish completion

npx @trucore/atf@1.5.1 completion fish

Save to fish completions directory:

Save fish completion

npx @trucore/atf@1.5.1 completion fish > ~/.config/fish/completions/atf.fish

Verify It Works

After sourcing the completion script, type atf and press Tab. You should see available commands like doctor, simulate, tx, and more.