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”mkdir -p ~/.local/share/bash-completion/completionspakyas completion bash > ~/.local/share/bash-completion/completions/pakyas
# Restart the shell, or load it nowsource ~/.local/share/bash-completion/completions/pakyasThe bash-completion package loads files from this directory automatically. Without it, add the source line to ~/.bashrc.
# Ensure completion directory exists and is in fpathmkdir -p ~/.zfuncpakyas completion zsh > ~/.zfunc/_pakyasmkdir -p ~/.config/fish/completionspakyas completion fish > ~/.config/fish/completions/pakyas.fishPowerShell
Section titled “PowerShell”pakyas completion powershell >> $PROFILE
# Restart PowerShellElvish
Section titled “Elvish”mkdir -p ~/.config/elvish/libpakyas 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:
api-key auth check completion help login logoutmonitor org ping project update whoamiTyping pakyas check and pressing Tab should show subcommands:
create delete doctor help inspect list logs pauseresume show sync tail updateCompletions are generated from the installed version, so regenerate them after pakyas update.
See Also
Section titled “See Also”- Installation - Install and update the CLI