npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

git-repo-creator

v1.0.0

Published

A tool for creating remote git repositories right from your command line

Downloads

4

Readme

git-repo-creator

A tool for creating remote GIT repositories

With git-repo-creator you can create a remote repository directly from your terminal! It is compatible with GitHub, Gitlab, and Bitbucket. It also allows to use HTTPS or SSH repositories.

Installation

$ npm install -g git-repo-creator

After creation

When a repository is sucessfully created, two things might happen:

  • If the command is executed inside a folder containing a local git repository, a new remote will be updated/added with the new one.
  • If the command is executed outside of a local git repository, a new folder (named after the repository) will be created, containing the new repo.

Example Usage

As a test, I am going to show you how to setup a GitHub account inside the tool, and how to create a remote repository:

First of all, we have to setup our credentials:

git-repo-creator config:github

This will launch a simple assistant that will ask you about your username and personal access token (for more info about this please refer to the bottom section)

Setup is done! Now, let's create our repository.

git-repo-creator create:github simple-test

When this command is entered, the tool will ask you if you want to add a description as well as whether you want your repository to be cloned as an SSH or HTTPS.

Commands

git-repo-creator config:bitbucket

Setup a Bitbucket account

USAGE
  $ git-repo-creator config:bitbucket

OPTIONS
  -h, --help               show CLI help
  -k, --apiKey=apiKey
  -u, --username=username
  --read
  --reset

See code: src/commands/config/bitbucket.ts

git-repo-creator config:github

Setup a github account

USAGE
  $ git-repo-creator config:github

OPTIONS
  -h, --help               show CLI help
  -k, --apiKey=apiKey
  -u, --username=username
  --read
  --reset

See code: src/commands/config/github.ts

git-repo-creator config:gitlab

Setup a Gitlab account

USAGE
  $ git-repo-creator config:gitlab

OPTIONS
  -h, --help               show CLI help
  -k, --apiKey=apiKey
  -u, --username=username
  --read
  --reset

See code: src/commands/config/gitlab.ts

git-repo-creator create:bitbucket REPONAME

Create a new Bitbucket remote repository

USAGE
  $ git-repo-creator create:bitbucket REPONAME

OPTIONS
  -h, --help    show CLI help
  -p, --public  Change the visibility of the repository to 'public'
  --http        Clone using http
  --noClone     Do not clone/add remote of the new repository
  --ssh         Clone using ssh

See code: src/commands/create/bitbucket.ts

git-repo-creator create:github REPONAME

Create a new Github remote repository

USAGE
  $ git-repo-creator create:github REPONAME

OPTIONS
  -h, --help    show CLI help
  -p, --public  Change the visibility of the repository to 'public'
  --http        Clone using http
  --noClone     Do not clone/add remote of the new repository
  --ssh         Clone using ssh

See code: src/commands/create/github.ts

git-repo-creator create:gitlab REPONAME

Create a new Gitlab remote repository

USAGE
  $ git-repo-creator create:gitlab REPONAME

OPTIONS
  -h, --help    show CLI help
  -p, --public  Change the visibility of the repository to 'public'
  --http        Clone using http
  --noClone     Do not clone/add remote of the new repository
  --ssh         Clone using ssh

See code: src/commands/create/gitlab.ts

git-repo-creator help [COMMAND]

display help for git-repo-creator

USAGE
  $ git-repo-creator help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

Flags

  • --ssh to clone the repo using ssh
  • --http to clone the repo using http (default)
  • --noClone to not clone nor add the origin of the new created repository
  • -p, --public to create a public repository (defaults to private)

Useful Links