CmdID / Commands
Generate shell completion scripts for GitHub CLI commands. tldr-pages
On several platforms
Opens CmdID with your command. It is read in your browser and sent nowhere.
Print a completion script
gh completion --shell bash
Append the gh completion script to ~/.bashrc
gh completion --shell bash >>~/.bashrc
Append the gh completion script to ~/.zshrc
gh completion --shell zsh >>~/.zshrc
Display the subcommand help
gh completion