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.
To install the GitLab Downloader, you can use npm:
npm install @russ-b/gitlab-downloaderYou can use the GitLab Downloader by running the following command:
gitlab-downloader --token <your_gitlab_token> --hostUrl <gitlab_host_url> --projectId <project_id> [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.
gitlab-downloader --token your_token --hostUrl https://gitlab.com --projectId 123456 --branch develop --includeOnly src,docs --dir ./downloads