Bootstrap a new private GitHub repository and a matching local Node.js project from the command line.
This project is currently suggested for Windows users. It was built as a fun side project :)) and should be treated as such.
- Creates a private GitHub repo using the GitHub API
- Initializes a local folder with a Node.js .gitignore and README
- Sets up git, creates the first commit, and pushes to
main - Clear progress output with colored logs
- Node.js 18+ recommended
- Git installed and available on your PATH
- A GitHub personal access token with
reposcope - Windows recommended for the default Desktop-based project path
npm installCreate a .env file in the project root:
GITHUB_TOKEN=your_token_hereTo create your token:
- Open GitHub and go to Settings.
- Open Developer settings, then Personal access tokens.
- Create a new token with
repoaccess. - Copy the token into your
.envfile asGITHUB_TOKEN. - Keep it private and do not commit the
.envfile.
node index.js <repo-name>Example:
node index.js my-new-repo- Creates a new private GitHub repo with the provided name
- Creates a local folder with the same name
- Adds a Node.js .gitignore and a basic README in your Desktop
- Initializes git, commits, sets
main, and pushes to GitHub
- Ensure your token is valid and has
reposcope - If a local folder already exists and is not empty, the command will fail
- If git is not installed, initialization will fail
MIT