glab-alias

Manage command aliases for GitLab CLI

TLDR

List aliases
$ glab alias list
Set alias
$ glab alias set [name] "[command]"
Delete alias
$ glab alias delete [name]
Set an alias that expands through a shell
$ glab alias set [name] --shell "[command]"

SYNOPSIS

glab alias command [options]

DESCRIPTION

glab alias manages command aliases for the GitLab CLI. It allows creating shortcuts for frequently used glab commands, making common workflows faster to execute.Aliases are stored in the glab configuration file and can reference any valid glab command with arguments, or, with --shell, an arbitrary shell command.

PARAMETERS

-s, --shell

Interpret the alias expansion as a shell command instead of a glab command, allowing pipes (`|`) and redirects (`>`). Use `$1`, `$2`, ... to reference passed arguments and `$@` for all of them.

SUBCOMMANDS

list

List aliases.
set name expansion
Create an alias for a glab command, or for an external command with --shell.
delete name
Remove an alias.

SEE ALSO

glab(1)

RESOURCES

Documentation · Source code