# excli-tool

> this is a tool to make your express development easer

Latest version **0.3.1** (published 2022-12-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install excli-tool
pnpm add excli-tool
yarn add excli-tool
bun add excli-tool
```

Provides the command `excli`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.1 |
| Published | 2022-12-25 |
| First published | 2022-12-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 31.2 KB |
| Known vulnerabilities | 0 (+4 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | mohamedhossam |
| Keywords | cli |

## Links

- npm: https://www.npmjs.com/package/excli-tool
- Repository: https://github.com/mohamedhoss123/express-cli
- Homepage: https://github.com/mohamedhoss123/express-cli#readme
- Issues: https://github.com/mohamedhoss123/express-cli/issues
- npm.io page: https://npm.io/package/excli-tool

## Dependencies (5)

- [chalk](https://npm.io/package/chalk.md) ^4.1.2
- [fs-extra](https://npm.io/package/fs-extra.md) ^11.1.0
- [inquirer](https://npm.io/package/inquirer.md) ^8.0.0
- [commander](https://npm.io/package/commander.md) ^9.4.1
- [decompress](https://npm.io/package/decompress.md) ^4.2.1

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 0.3.1 (latest) — 2022-12-25
- 0.2.1 — 2022-12-24

## README

# excli (express command line interface)

this packge is a cli tool to make your development with express easer<br>

## installation
install globaly : <br>
```bash
npm i -g excli-tool
```

## docs
| Command | Description |
| --- | --- |
| new | create new project files and setup dependencies |
| gen | generate (model \| controller \| middleware \| router) |

### new command
to create new project type :
```bash
    excli new <project name>
```
the `<project name>` will be replaced with your project name and this name will be added to package.json file

example :
 ```bash
    excli new my-app
```
after that continue in process and choce any dependencies you want .<br>
when you choose the orm any orm you choose will effect the ```gen mo ``` command when you want to generate <br>
the ```excli.json``` file is important so be carefull and don't delete it

### generate command
| Command | Description |
| --- | --- |
| co | controller |
| mo | model |
| mi | middleware |
| r | router |

#### how to generate
to generete controller you will write in your terminal somting link this 
```bash
    excli gen co mycontroller
```
controller will be generated in controllers directory<br>
if you want to craete a folder inside the controllers directory and then add controller in that folder you can easly do this <br>
```bash
    excli gen co anyfolder/mycontroller
```
excli will handel to create that folder for you .<br>
the same way you generated new controller you will do the same with models and middlewares <br>
and thy will be generated in thir own directory

some examples : <br>
```bash
    excli gen mo users
```
this will create `user.model.js` file inside models directory
```bash
    excli gen mi auth
```
this will create `auth.middleware.js` file inside middlewares directory
```bash
    excli gen r auth
```
this will create `auth.router.js` file inside routes directory

---
_Source: https://npm.io/package/excli-tool · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
