Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

create-gh-repo

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-gh-repo

Create and initialize a Github Repository with one command.

  • 0.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
decreased by-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

Create-Github-Repo

Create and initialize a new GitHub Repository with one command. You need to have a local installation of node and git.

npm: version npm: license

Example Usage

Creates a new public repository on GitHub and initializes your local folder / project

npm init gh-repo cool-project

demo

Features ✨

  • 🚀 Automatically create a new GitHub Repository in your Personal Account or Organization.
  • 🙏 git init a 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_NAME

This 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 --private

To 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

  1. Clone the repository.
  2. Run npm install to install the dependencies.
  3. To build the project run npm run build.
  4. Run the project by executing node .

Keywords

FAQs

Package last updated on 30 Aug 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc