Skip to content

Latest commit

 

History

History
74 lines (50 loc) · 1.71 KB

README.md

File metadata and controls

74 lines (50 loc) · 1.71 KB

Dumper CLI

Dumper CLI is an utility to dump repositories from github and bitbucket.

Intro

dumper-cli allows you to quickly dump repositories from github or bitbucket without going over every repository and cloning that manually.

Example:

Bitbucket

./dumper-cli dump bitbucket -u USERNAME -d DESTINATION_FOLDER -t APP_PASSWORD

Github

./dumper-cli dump github -u USERNAME -d DESTINATION_FOLDER -t PERSONAL_ACCESS_TOKEN

Get executable

Download executable from Relase page for your platform.

Prerequisite

Github

To get personal access token for github account you need to:

  • Go to Settings

  • Open Developer Settings (bottom left-hand side)

  • Personal access tokens and generate new one (classic)

  • Select scopes (we need these three as we dump all repositories based on projects/user/repo):

    • repo
    • user
    • project

Bitbucket

To get application password for bitbucket account you need to:

  • Go to Personal Bitbucket Settings

  • App passwords menu item

  • Create app password

  • For Permissions:

    • Account -> Read
    • Workspace membership -> Read
    • Projects -> Read
    • Repositories -> Automatically should be Read

To get username you need to:

  • Go to Personal Bitbucket Settings
  • Account settings
  • Bitbucket profile settings -> copy Username

CLI options

./dumper-cli dump
                |
                 --> github | bitbucket
                                       |
                                         --> -u USERNAME
                                         --> -d destination of dump
                                         --> -t app password or access token
                                         --> -m clone mode (all-branches|default-branch)