← 返回命令列表

Linux command

gitlab 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

List projects

gitlab project list

Create project

gitlab project create --name "[name]"

List merge requests

gitlab project-merge-request list --project-id [id]

Create merge request

gitlab project-merge-request create --project-id [id] --source-branch [feature] --target-branch [main] --title "[title]"

说明

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.

参数

--project-id _id_
Project ID.
--name _name_
Resource name.
--title _title_
Title.
--source-branch _branch_
Source branch.
--target-branch _branch_
Target branch.

FAQ

What is the gitlab command used for?

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.

How do I run a basic gitlab example?

Run `gitlab project list` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --project-id _id_ do in gitlab?

Project ID.