@codetanna/nex-cli
v2.0.7
Published
This is a next gen cli for creating and managing your node projects
Downloads
16
Readme
Nex-cli by Codetanna
This is a cli tool to help you when building your node applications
- Installation
- Quick Start
- Commands
Installation
npm i @codetanna/nex-cli
Quick Start
- Create a new project
npx cli create <project_name>
CD into project directory
cd <project_name>
Install packages
npm i
Start project
npm start
Commands
Create
- This command is used to create a new project
npx cli create <project_name>
Add model
This command allows you to add a model to your project
npx cli add:model <project_name>
Add controller
This command allows you to add a controller to your project
npx cli add:controller <controller_name>
Add route
This command allows you to add a route to your project
npx cli add:route <route_name>
Add service
This command allows you to add a service to your project
npx cli add:service <service_name>
Add Linting
This command allows you to add eslinting as well as prettier to your project
npx cli add:lint
Add Test
This command allows you to add test to your project
npx cli add:test
Using flags
Create project with ejs
npx cli create <project_name> -e
npx cli create <project_name> --ejs
Create project for javascript backend
npx cli create <project_name> -js
npx cli create <project_name> --javascript
Create project for typescript backend
npx cli create <project_name> -t
npx cli create <project_name> --typescript
Opening man page for any of our commands
npx cli add -h
npx cli add --help
Authors
Emmanuel Gyang LinkedIn Account [email protected]