Small command line app, written in typescript, to clone all gitlab projects which a user has access to.
If a project already exists locally, switches to the default branch and pulls.
-
clone the repo
$ git clone git@github.com:sauntimo/gitlab-projects.git gitlab-projects
-
initialise
$ cd gitlab-projects && npm i -g
-
get an Personal Access Token from Gitlab.
-
copy the
.env.sample
file to.env
and add the required variables$ cp .env.sample .env
$ gitlab_projects