Quantcast
Channel: Create a repo in Gitlab using CLI - Stack Overflow
Viewing all articles
Browse latest Browse all 10

Answer by СашаЧерных for Create a repo in Gitlab using CLI

$
0
0

1. Summary

Easy to use:


2. Disclaimer

This answer is relevant for August 2019. In the future, its data may be outdated.


3. lab (recommended)

3.1. About

lab — CLI tool, making it simple some operations with GitLab repositories. lab is Gitlab equivalent of hub extension for GitHub.

3.2. Usage

After first run lab will offer to enter token. Create a personal access token with desired scope api→ paste it to terminal →Enter.

Then run lab project create:

lab project create -n KiraLab --public -d "Kira lab demo project"

3.3. Result

lab

3.4. Why recommended

Options are available:

  1. --public— making repository public, not private
  2. -d, --description— creating description

lab description


4. gitlab-cli

4.1. About

Cross-platform Go-written command-line utility for GitLab repositories operations.

4.2. Usage

Create your GitLab personal access tokengitlab-cli login YOUR_TOKEN→ run gitlab-cli project create command:

gitlab-cli project create KiraGitLabCLI

4.3. Result

gitlab-cli

4.4. Note

Please do not confuse this Go project and Ruby gitlab-cli tool from @thameera answer.


5. External links

  1. GitLab CLI clients
  2. Instructions, how to create GitHub repository from command line (on Russian)

Viewing all articles
Browse latest Browse all 10

Trending Articles