Thanks to visit codestin.com
Credit goes to github.com

Skip to content

TWRaven/clonelab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clonelab

Clone (and keep up to date) all your gitlab repositories

Installation

go install github.com/TWRaven/clonelab@latest

Create a config.json file in $HOME/.clonelab/ or /etc/clonelab/

{
  // Required: Your GitLab Personal Access Token
  "gitlabToken": "glpat-xxxxxxxxxxxxxxxxx",
  // Optional: Gitlab API URL
  "gitlabUrl": "https://git.your-instance.com/api/v4",
}

All configuration options can be overridden with environment variables or cli flags.
The priority is as follows:

  • cli flag (highest prio)
  • environment variable
  • config key
Cli flag Environment variable Config key (json) Description
gitlab-token CLONELAB_GITLAB_TOKEN gitlabToken Your Personal Access Token.
gitlab-url CLONELAB_GITLAB_URL gitlabUrl Base URL for self-hosted GitLab instances. (default: https://gitlab.com/api/v4)

Example

CLONELAB_GITLAB_TOKEN="my-token" clonelab clone

Usage

clonelab clone [flags]

About

Clone all your gitlab repositories

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages