commands.sh

glab

all

Work seamlessly with GitLab. Some subcommands such as `config` have their own usage documentation.

More info →

Options (2)

-w, --webboolean

View an issue in the default browser

Example: glab issue view {{[-w|--web]}} {{issue_number}}
boolean

Check out a specific pull request locally

Example: glab {{[co|mr checkout]}} {{pr_number}}

Examples (7)

Clone a GitLab repository locally

glab repo clone owner/repository

Create a new issue

glab issue create

View and filter the open issues of the current repository

View an issue in the default browser

glab issue view [-w|--web] issue_number

Create a merge request

View a pull request in the default web browser

glab mr view [-w|--web] pr_number

Check out a specific pull request locally

glab [co|mr checkout] pr_number
made by @shridhargupta | data from tldr-pages