GLab - A GitLab CLI Tool¶
GLab is an open source Gitlab Cli tool written in Go (golang) to help
work seamlessly with Gitlab from the command line. Work with issues,
merge requests, watch running pipelines directly from your CLI among
other features. Inspired by gh
, the official GitHub CLI
tool.
Usage¶
glab <command> <subcommand> [flags]
Core Commands¶
glab mr [list, create, close, reopen, delete, ...]
glab issue [list, create, close, reopen, delete, ...]
glab pipeline [list, delete, ci status, ci view, ...]
glab release
glab repo
glab label
glab alias
Examples¶
$ glab auth login --stdin < token.txt
$ glab issue list
$ glab mr for 123 # Create merge request for issue 123
$ glab mr checkout 243
$ glab pipeline ci view
$ glab mr view
$ glab mr approve
$ glab mr merge
Authentication¶
Run glab auth login
to authenticate with your GitLab account. glab
will respect tokens set using GITLAB_TOKEN
.