2025-03-14 21:59:59 -06:00
|
|
|
# glab
|
|
|
|
|
|
|
|
|
|
> Work seamlessly with GitLab.
|
|
|
|
|
> Some subcommands such as `config` have their own usage documentation.
|
2025-06-28 19:25:29 -06:00
|
|
|
> More information: <https://gitlab.com/gitlab-org/cli/-/tree/main/docs/source>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- 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:
|
|
|
|
|
|
|
|
|
|
`glab issue list`
|
|
|
|
|
|
|
|
|
|
- View an issue in the default browser:
|
|
|
|
|
|
2025-06-28 19:25:29 -06:00
|
|
|
`glab issue view {{[-w|--web]}} {{issue_number}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Create a merge request:
|
|
|
|
|
|
|
|
|
|
`glab mr create`
|
|
|
|
|
|
|
|
|
|
- View a pull request in the default web browser:
|
|
|
|
|
|
2025-06-28 19:25:29 -06:00
|
|
|
`glab mr view {{[-w|--web]}} {{pr_number}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Check out a specific pull request locally:
|
|
|
|
|
|
|
|
|
|
`glab mr checkout {{pr_number}}`
|