Skip to content
GitLab

akili completion

Generate shell completion scripts for the akili CLI. Completions enable tab-completion of commands, subcommands, flags, and arguments in your terminal.

Terminal window
akili completion <shell>

akili completion generates a shell completion script and writes it to stdout. Pipe the output to a file or source it directly to enable tab-completion in your shell session.

Supported shells:

ShellValue
Bashbash
Zshzsh
Fishfish
Elvishelvish
PowerShellpowershell
ArgumentTypeRequiredDescription
shellstringyesTarget shell: bash, zsh, fish, elvish, or powershell
Terminal window
# Generate and install for the current session
source <(akili completion bash)
# Install permanently
akili completion bash > ~/.local/share/bash-completion/completions/akili
Terminal window
# Generate and install for the current session
source <(akili completion zsh)
# Install permanently (ensure the directory is in $fpath)
akili completion zsh > ~/.zfunc/_akili
Terminal window
# Generate and install
akili completion fish > ~/.config/fish/completions/akili.fish
Terminal window
# Generate and install for the current session
akili completion powershell | Out-String | Invoke-Expression
# Install permanently
akili completion powershell > $PROFILE.CurrentUserAllHosts

Once installed, tab-completion works for:

  • Top-level commands: akili pro<TAB> completes to akili product
  • Subcommands: akili product de<TAB> completes to akili product deploy
  • Flags: akili product create --ar<TAB> completes to --archetype
  • Global flags: akili --pro<TAB> completes to --profile