LinuxCommandLibrary

gitlab

Python CLI for the GitLab API

TLDR

List projects

$ gitlab project list
copy
Create project
$ gitlab project create --name "[name]"
copy
List merge requests
$ gitlab project-merge-request list --project-id [id]
copy
Create merge request
$ gitlab project-merge-request create --project-id [id] --source-branch [feature] --target-branch [main] --title "[title]"
copy

SYNOPSIS

gitlab resource action [options]

DESCRIPTION

gitlab is the python-gitlab CLI for interacting with the GitLab API. It manages projects, merge requests, issues, users, groups, and other GitLab resources from the command line.
The tool follows a resource-action pattern, where you specify the GitLab resource type and the action to perform on it.

PARAMETERS

--project-id id

Project ID.
--name name
Resource name.
--title title
Title.
--source-branch branch
Source branch.
--target-branch branch
Target branch.

CONFIGURATION

~/.python-gitlab.cfg

Configuration file containing GitLab instance URLs, private tokens, and default settings.

RESOURCES

project

Manage projects.
project-merge-request
Manage merge requests.
project-issue
Manage issues.
user
Manage users.
group
Manage groups.

SEE ALSO

glab(1), git(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community