0.3.0 • Published 6 years ago
create-gh-repo v0.3.0
Create-Github-Repo
Create and initialize a new GitHub Repository with one command. You need to have a local installation of node and git.
Example Usage
Creates a new public repository on GitHub and initializes your local folder / project
npm init gh-repo cool-projectFeatures ✨
- 🚀 Automatically create a new GitHub Repository in your Personal Account or Organization.
🙏
git inita new local project or update existing one.🔐 Simple Authorization using Personal Access Token.
Usage
Cd into any project directory and run
npm init gh-repo $REPO_NAMEThis will create a new public repository for you. If you want to create a private repo you can run
npm init gh-repo $REPO_NAME --privateTo add a description while creating the repository simply use
npm init gh-repo $REPO_NAME --desc "My Description"Authorization
We use a Personal Access Token to authenticate to the GitHub API. Add the Token to your Environment Variables.
Permission: repo .
export GITHUB_PERSONAL_ACCESS_TOKEN="YOUR_TOKEN"Development
- Clone the repository.
- Run
npm installto install the dependencies. - To build the project run
npm run build. - Run the project by executing
node .