Clone (and keep up to date) all your gitlab repositories
go install github.com/TWRaven/clonelab@latestCreate 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) |
CLONELAB_GITLAB_TOKEN="my-token" clonelab cloneclonelab clone [flags]