---
name: "gh-alias"
section: "1"
platform: "linux"
package: "github-cli"
version: "2.102.1-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/gh-alias"
---

# gh-alias(1)

Create command shortcuts

## NAME

gh-alias - Create command shortcuts

## SYNOPSIS

**gh alias \<command\> \[flags\]**

## DESCRIPTION

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)](/gh-alias-delete/1.md)**

  Delete set aliases

- **[gh-alias-import(1)](/gh-alias-import/1.md)**

  Import aliases from a YAML file

- **[gh-alias-list(1)](/gh-alias-list/1.md)**

  List your aliases

- **[gh-alias-set(1)](/gh-alias-set/1.md)**

  Create a shortcut for a gh command

## EXIT CODES

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.

## SEE ALSO

**[gh(1)](/gh/1.md)**
