completion Command
The completion command generates tab-completion scripts for your shell. These scripts enable auto-completion of commands, subcommands, and flags when you press Tab.
pakyas completion <SHELL>Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
SHELL | Shell to generate completions for: bash, zsh, fish, powershell, elvish |
Installation by Shell
Section titled “Installation by Shell”pakyas completion bash > ~/.local/share/bash-completion/completions/pakyas
# Restart shell or source the filesource ~/.local/share/bash-completion/completions/pakyas# Ensure completion directory exists and is in fpathmkdir -p ~/.zfuncpakyas completion zsh > ~/.zfunc/_pakyaspakyas completion fish > ~/.config/fish/completions/pakyas.fishPowerShell
Section titled “PowerShell”pakyas completion powershell >> $PROFILE
# Restart PowerShellElvish
Section titled “Elvish”pakyas completion elvish > ~/.config/elvish/lib/pakyas.elvAdd to your ~/.config/elvish/rc.elv:
use pakyasVerifying Installation
Section titled “Verifying Installation”After installation, type pakyas and press Tab. You should see command suggestions like:
auth check api-key completion ping ...Typing pakyas check and pressing Tab should show subcommands:
create delete doctor inspect list tail ...See Also
Section titled “See Also”- CLI Overview - Introduction to the Pakyas CLI