clonelab

command module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2025 License: BSD-3-Clause Imports: 4 Imported by: 0

README

clonelab

Clone 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]

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL