/gitlab-projects

Command line app to clone all projects a user has access to

Primary LanguageJavaScript

Gitlab Projects

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.

Installation

  • 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
    

Usage

$ gitlab_projects

image