Skip to content

RuSS-B/gitlab-downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitLab Downloader

GitLab Downloader is a CLI tool to download GitLab repositories with filtering options. It allows you to specify which folders to include or exclude during the download process.

Installation

To install the GitLab Downloader, you can use npm:

npm install @russ-b/gitlab-downloader

Usage

You can use the GitLab Downloader by running the following command:

gitlab-downloader --token <your_gitlab_token> --hostUrl <gitlab_host_url> --projectId <project_id> [options]

Options

  • --token, -t (required): GitLab Personal Access Token (PAT). Default: process.env.REPOSITORY_TOKEN
  • --hostUrl, -u (required): GitLab host URL.
  • --projectId, -p (required): GitLab Numeric Project ID.
  • --branch, -b: Branch name. Default: master.
  • --includeOnly, -i: Comma-separated list of folders to include.
  • --dir, -d: Directory to download files to. Default: current directory.

Example

gitlab-downloader --token your_token --hostUrl https://gitlab.com --projectId 123456 --branch develop --includeOnly src,docs --dir ./downloads

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published