Forrest logo
back to the glab tool

glab-alias:tldr:124d4

glab-alias: Display the subcommand help.
$ glab alias
try on your machine

The glab alias command is a GitLab-specific command line interface (CLI) command used to manage custom aliases within the GitLab CLI tool.

Aliases are a convenient way to create shortcuts or abbreviations for longer and frequently used GitLab CLI commands. With the glab alias command, you can define, list, modify, delete and export custom aliases.

Here are some subcommands and their functions related to glab alias:

  • glab alias add [flags] <alias> <command>: This command adds a new custom alias, associating it with the specified command.
  • glab alias list: This command lists all the currently defined custom aliases.
  • glab alias delete [flags] <alias>: This command deletes the specified custom alias.
  • glab alias reset: This command resets all the custom aliases to the default set provided by the GitLab CLI tool.
  • glab alias export: This command exports all the custom aliases into a shell script format.
  • glab alias import [flags] file: This command imports custom aliases from a previously exported shell script file.

Overall, glab alias provides a way to improve efficiency and productivity by allowing users to define their own shortcuts and aliases for frequently used GitLab CLI commands.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the glab tool