An open API service indexing awesome lists of open source software.

https://github.com/doberman/dbrmn-github-repo-cleanup

Clones GitHub repositories, zips them up and uploads them to Dropbox. Also, if specified, deletes the repository from GitHub.
https://github.com/doberman/dbrmn-github-repo-cleanup

cli dropbox github nodejs

Last synced: 11 months ago
JSON representation

Clones GitHub repositories, zips them up and uploads them to Dropbox. Also, if specified, deletes the repository from GitHub.

Awesome Lists containing this project

README

          

# github-repo-cleanup

> CLI tool to clone GitHub repositories, zip them up and — if specified — delete the repository from GitHub.

## Requirements

This project requires [NodeJS](https://nodejs.org) v8.0+.

## Installation

Install via [npm](https://npmjs.com):

```
npm i -g @doberman/github-repo-cleanup
```

## Setup

Create a config file at `~/.githubrepocleanuprc`, add your
[Dropbox access token](https://www.dropbox.com/developers/apps)
and [GitHub access token](https://github.com/settings/tokens) accordingly, e.g.:

```
export DROPBOX_ACCESS_TOKEN=...
export GITHUB_ACCESS_TOKEN=...
```

## Usage

```
github-repo-cleanup
```

...where `` is the path to the repository on Github,
e.g. `username/repo`.

For more help, try `github-repo-cleanup -h`;