LinuxCommandLibrary

gh-alias

GitHub CLI command alias management

TLDR

List aliases

$ gh alias list
copy
Set an alias
$ gh alias set [name] "[command]"
copy
Delete an alias
$ gh alias delete [name]
copy
Set with shell expansion
$ gh alias set --shell [name] "[shell command]"
copy

SYNOPSIS

gh alias command [options]

DESCRIPTION

gh alias manages command aliases for the GitHub CLI. Create shortcuts for frequently used or complex commands to streamline your GitHub workflow.
Aliases can simplify multi-step operations, provide shorthand for common tasks, and customize the CLI to match your development patterns. Shell aliases support piping and advanced command composition, while regular aliases work with gh subcommands and flags.

PARAMETERS

--shell

Expand as shell command.

SUBCOMMANDS

list

List defined aliases.
set
Create an alias.
delete
Remove an alias.

SEE ALSO

gh(1), gh-config(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community