commands.sh

gh completion

all

Generate shell completion scripts for GitHub CLI commands.

More info →

Options (1)

-s, --shellboolean

Print a completion script

Example: gh completion {{[-s|--shell]}} {{bash|zsh|fish|powershell}}

Examples (4)

Print a completion script

gh completion [-s|--shell] bash|zsh|fish|powershell

Append the `gh` completion script to `~/.bashrc`

gh completion [-s|--shell] bash >> ~/.bashrc

Append the `gh` completion script to `~/.zshrc`

gh completion [-s|--shell] zsh >> ~/.zshrc

Display the subcommand help

made by @shridhargupta | data from tldr-pages