@pghalliday/mirror-repos
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

mirror-repos

Script to mirror all repos from a github account.

Usage

  • install with
npm install -g @pghalliday/mirror-repos
  • Add an SSH key for your current user to your GitHub account
  • Create a GitHub Personal Access Token with read:user and read:org scopes.
  • Create a config.json file with the following contents:
{
  "outputDirectory": "output",
  "logFile": "mirror-repos.log",
  "logLevel": "info",
  "gitBinary": "git",
  "strictHostKeyChecking": true,
  "github": {
    "graphQLEndpoint": "https://api.github.com/graphql",
    "sshEndpoint": "git@github.com",
    "personalAccessToken": "YOUR_PERSONAL_ACCESS_TOKEN"
  }
}
  • Run from the same directory as config.json with:
mirror-repos
  • Or run using a config file from a different location with:
mirror-repos <PATH_TO_CONFIG>

Readme

Keywords

none

Package Sidebar

Install

npm i @pghalliday/mirror-repos

Weekly Downloads

2

Version

1.0.6

License

ISC

Unpacked Size

42.5 kB

Total Files

45

Last publish

Collaborators

  • pghalliday