geekyants-cli
v0.0.5
Published
GeekyAnts CLI tool
Downloads
17
Readme
GeekyAnts CLI Tool
GeekyAnts CLI tool is a command line interface tool that helps you to create new projects from available COE boilerplates, add new frontend and backend instances, and authenticate with Gitlab using personal access token.
Table of Contents
- Prerequisites
- Installation
- Usage
- Authenticate with Gitlab
- Logout from Gitlab
- Create a new project
- Add a new frontend instance
- Add a new backend instance
Prerequisites
- Node.js >= LTS
- Gitlab Personal Access Token
- Goto "Gitlab :: Personal access Tokens"
- Click "Add new token"
- Keep or remove "Expiration date" as per your requirement
- In "Select scopes", choose
api
scope - Click "Create personal access token"
- Copy the generated token and keep it safe
Installation
npm install -g geekyants-cli@latest
Usage
geekyants-cli --help
Usage: GeekyAnts CLI [options] [command]
GeekyAnts CLI tool
Options:
-V, --version output the version number
-h, --help display help for command
Commands:
add:frontend <instance-name> Add a new frontend instance
add:backend <instance-name> Add a new backend instance
auth [options] Gitlab authentication using personal access token
new <project-name> Create a new project from available COE boilerplates
help [command] display help for command
Authenticate with Gitlab
geekyants-cli auth
Enter your Gitlab personal access token when prompted.
✔ Enter your Gitlab Personal Access token: [input is masked]
Authentication successful!
Upon successful authentication, the token will be stored in the home directory.
Logout from Gitlab
geekyants-cli auth --logout
Create a new project
geekyants-cli new <project-name>
Add a new frontend instance
geekyants-cli add:frontend <instance-name>
Add a new backend instance
geekyants-cli add:backend <instance-name>