OS Manuals

gh-alias(1)

gh-alias - Create command shortcuts

GH-ALIAS(1) GitHub CLI manual GH-ALIAS(1)

gh-alias - Create command shortcuts

gh alias <command> [flags]

Aliases can be used to make shortcuts for gh commands or to compose multiple commands.

Run gh help alias set to learn more.

Delete set aliases

Import aliases from a YAML file

List your aliases

Create a shortcut for a gh command

0: Successful execution

1: Error

2: Command canceled

4: Authentication required

NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information.

gh(1)

Oct 2026

gh 2.102.1-r0 · os · ingested 2026-10-21