GitHub CLI Auth, Alias, and Config/Generate Bash completions

Generate shell completion for Bash.

Section: Aliases, Extensions, and Completion

Generate Bash completions

bash
bash
gh completion -s bash > /etc/bash_completion.d/gh
Explanation

Generate shell completion for Bash.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Aliases, Extensions, and Completion
Generate Zsh completions
Generate shell completion for Zsh.
OpenIn sheetbashsame section
Generate Fish completions
Generate shell completion for Fish.
OpenIn sheetbashsame section
List aliases
List configured aliases.
OpenIn sheetbashsame section
Create an alias
Create a simple alias.
OpenIn sheetbashsame section
Create a shell alias
Create a shell-powered alias.
OpenIn sheetbashsame section
Delete an alias
Delete a configured alias.
OpenIn sheetbashsame section