Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lahdekorpi/gitlab-init
Clone all your projects from Gitlab automatically
https://github.com/lahdekorpi/gitlab-init
git gitclone gitlab gitlab-api init kitchen-sink
Last synced: 15 days ago
JSON representation
Clone all your projects from Gitlab automatically
- Host: GitHub
- URL: https://github.com/lahdekorpi/gitlab-init
- Owner: lahdekorpi
- License: mit
- Created: 2018-11-29T19:57:36.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-02-02T20:43:57.000Z (11 months ago)
- Last Synced: 2024-10-28T00:11:10.655Z (2 months ago)
- Topics: git, gitclone, gitlab, gitlab-api, init, kitchen-sink
- Language: JavaScript
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gitlab-init
**A simple CLI tool that connects to your Gitlab installation, lists all projects you have access to and attempts to git clone them into the same folder structure as in Gitlab.**Why on earth would you need this?
- When installing a new machine and wanting to get a quick start
- Getting new people joining your team quickly set up
- Use a unified directory structure for everyone
- When you just want to git clone all Gitlab projects## Installation
1. Install git and node
2. `npm -g install gitlab-init`
3. `mkdir projects`
4. `gitlab-init -e https://your-gitlab-url -t your-token`
5. Success!## Usage
```
Usage: gitlab-init [options]Options:
-V, --version output the version number
-e, --endpoint [url] Gitlab installation endpoint
-t, --token [string] Your Gitlab profile token (Can be provided as env: GITLAB_TOKEN)
-m, --max Maximum project pages to get (10 per page) [10] (default: 10)
-p, --path [directory] Root projects directory where the project will be cloned into (default: "./projects/")
-h, --help output usage information
```