A dead simple script for bulk creation and deletion of GitHub repositories
Check out the blog related to this project: 7 things I learnt from a script for repository creation.
- Bulk create repositories from a template
- Revert creation
Instructions to run
- Docker, or a linux based system with curl and jq installed.
- Github personal access token with write and delete permissions.
- A template repository.
You'll need 2 things to get started:
A file called
.envwith the following variables. See the sample.
The second thing that is needed is a
repos.txtfile with the name of the repositories that you want to create. The number of repositories can be anywhere between 1 to 5000, due to the rate limitation of the GitHub API. eg:
repo-1 repo-2 repo-3 repo-5000
See a sample here
To run the scripts on any platform, replace