gh-alias(1)

gh-alias1

Create command shortcuts

Usage

gh alias <command> [flags]

Overview

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

Run gh help alias set to learn more.

Available commands

gh-alias-delete(1)

Delete set aliases

gh-alias-import(1)

Import aliases from a YAML file

gh-alias-list(1)

List your aliases

gh-alias-set(1)

Create a shortcut for a gh command

Exit status

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.

Releases

3 releases since Debian 12 (Bookworm); the text changed 2 times.

  1. 12
  2. 13
  3. Arch

From github-cli 2.102.1-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.