Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 537 Bytes

gitlab-cli.md

File metadata and controls

28 lines (19 loc) · 537 Bytes

GitLab CLI

Installation

Run:

sudo pip install python-gitlab

Configuration

This is the configuration to access the main GitLab server (gitlab.com).

  1. Go to your GitLab account and create a personal access token with API access. You will use it below instead of MY_TOKEN.

  2. Create a file in ~/.python-gitlab.cfg with the following content:

[global]
default = main
ssl_verify = true

[main]
url = https://gitlab.com
private_token = MY_TOKEN