git-repo-creator v1.0.0
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-creatorAfter 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:githubThis 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-testWhen 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:bitbucketgit-repo-creator config:githubgit-repo-creator config:gitlabgit-repo-creator create:bitbucket REPONAMEgit-repo-creator create:github REPONAMEgit-repo-creator create:gitlab REPONAMEgit-repo-creator help [COMMAND]
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
--resetSee 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
--resetSee 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
--resetSee 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 sshSee 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 sshSee 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 sshSee 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 CLISee code: @oclif/plugin-help
Flags
--sshto clone the repo using ssh--httpto clone the repo using http (default)--noCloneto not clone nor add the origin of the new created repository-p,--publicto create a public repository (defaults to private)
Useful Links
5 years ago