Skip to content

1ctl completion

1ctl completion generates shell completion scripts and can auto-detect your shell to install them automatically.

1ctl completion
Flag Type Required Default Description
--help, -h boolean No — Show help
Command Description
install Auto-detect shell and install completion (add one line to shell config)
bash Generate bash completion script
zsh Generate zsh completion script
fish Generate fish completion script
powershell Generate PowerShell completion script
Terminal window
# Auto-detect shell and install completion
1ctl completion install
# Generate and save bash completion
1ctl completion bash > ~/.bash_completion.d/1ctl
# Generate fish completion
1ctl completion fish > ~/.config/fish/completions/1ctl.fish