1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-05 08:15:24 +02:00
tldr/pages/common/glab-alias.md
2025-05-11 20:03:01 +03:00

24 lines
517 B
Markdown

# glab alias
> Manage GitLab CLI command aliases.
> More information: <https://gitlab.com/gitlab-org/cli/-/blob/main/docs/source/alias/index.md>.
- Display the subcommand help:
`glab alias`
- List all the aliases `glab` is configured to use:
`glab alias list`
- Create a `glab` subcommand alias:
`glab alias set {{mrv}} '{{mr view}}'`
- Set a shell command as a `glab` subcommand:
`glab alias set {{[-s|--shell]}} {{alias_name}} {{command}}`
- Delete a command shortcut:
`glab alias delete {{alias_name}}`