jdm-react-router-cli
Version:
A CLI tool to generate Express.js routers, models, middleware, and controllers
61 lines (47 loc) • 1.11 kB
Markdown
# JDM CLI
### Generate Express routers, models, and middleware effortlessly.
## Installation
To install JDM CLI globally, run:
```sh
npm install -g jdm-cli
```
## Usage
After installation, you can use `jdm` from the terminal.
### **Create a New Component**
```sh
jdm create <type> <name>
```
- **type**: `router`, `model`, or `middleware`
- **name**: The name of the component
Example:
```sh
jdm create router user
```
### **Setup a New Project**
```sh
jdm setup [options]
```
Options:
- `--force`: Overwrite existing files
- `--clean`: Remove existing project files before setup
### **Clean a Project**
```sh
jdm clean
```
Removes unnecessary files and folders from your project.
### **View License**
```sh
jdm license
```
Displays the **MIT License** for JDM CLI.
## Development
To work on JDM CLI locally:
```sh
git clone https://github.com/yourname/jdm-cli.git
cd jdm-cli
npm install
npm link
```
This links the CLI globally so you can test it.
## License
JDM CLI is licensed under the **MIT License**. Run `jdm license` to view it.