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.
- Host: GitHub
- URL: https://github.com/doberman/dbrmn-github-repo-cleanup
- Owner: doberman
- License: bsd-3-clause
- Created: 2017-09-12T08:56:50.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-04-12T12:51:26.000Z (almost 7 years ago)
- Last Synced: 2025-03-13T15:39:45.798Z (11 months ago)
- Topics: cli, dropbox, github, nodejs
- Language: JavaScript
- Homepage: https://doberman.io
- Size: 50.8 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
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`;