akili completion
Generate shell completion scripts for the akili CLI. Completions enable tab-completion of commands, subcommands, flags, and arguments in your terminal.
Synopsis
Section titled “Synopsis”akili completion <shell>Description
Section titled “Description”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:
| Shell | Value |
|---|---|
| Bash | bash |
| Zsh | zsh |
| Fish | fish |
| Elvish | elvish |
| PowerShell | powershell |
Arguments
Section titled “Arguments”| Argument | Type | Required | Description |
|---|---|---|---|
shell | string | yes | Target shell: bash, zsh, fish, elvish, or powershell |
Examples
Section titled “Examples”# Generate and install for the current sessionsource <(akili completion bash)
# Install permanentlyakili completion bash > ~/.local/share/bash-completion/completions/akili# Generate and install for the current sessionsource <(akili completion zsh)
# Install permanently (ensure the directory is in $fpath)akili completion zsh > ~/.zfunc/_akili# Generate and installakili completion fish > ~/.config/fish/completions/akili.fishPowerShell
Section titled “PowerShell”# Generate and install for the current sessionakili completion powershell | Out-String | Invoke-Expression
# Install permanentlyakili completion powershell > $PROFILE.CurrentUserAllHostsWhat Gets Completed
Section titled “What Gets Completed”Once installed, tab-completion works for:
- Top-level commands:
akili pro<TAB>completes toakili product - Subcommands:
akili product de<TAB>completes toakili product deploy - Flags:
akili product create --ar<TAB>completes to--archetype - Global flags:
akili --pro<TAB>completes to--profile