Forrest logo
back to the gh tool

gh-alias:tldr:2c789

gh-alias: List all the aliases `gh` is configured to use.
$ gh alias list
try on your machine

The command "gh alias list" is used to view a list of all the aliases that have been set up in the GitHub CLI (Command Line Interface) tool. Aliases in GitHub CLI can be used to create shortcuts for specific command sequences or to provide alternative names for commonly used commands. They allow you to define your own custom commands or override the default behavior of existing commands. When you run the "gh alias list" command, it will display a list of all the aliases that have been defined in your GitHub CLI configuration. The list will include the alias name (the shortcut or alternative command name) followed by the full command sequence it represents. For example, if you have set up an alias "pr" for the command "pull-request," the "gh alias list" command will show: pr -> pull-request This output indicates that whenever you use the "pr" alias, it will be substituted with the "pull-request" command. By displaying the list of aliases, the "gh alias list" command allows you to quickly review the aliases you have set up in order to understand and recall them when using the GitHub CLI.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the gh tool