Skip to content

CLI: Shell completion

A command to print a script for completing commands and flags in your shell. Common flags that you can add to any command (--host, --json, and others) are in the CLI command reference.

Command Description
hakocms-cli completion Print a shell completion script

Print a shell completion script.

Example (zsh): hakocms-cli completion zsh > “${fpath[1]}/_hakocms-cli”.

Example (bash): hakocms-cli completion bash > ~/.local/share/bash-completion/completions/hakocms-cli.

ターミナルウィンドウ
hakocms-cli completion <SHELL>
Flag or argument Description
<SHELL> bash, zsh, fish, powershell, elvish