> For the complete documentation index, see [llms.txt](https://degreetpro.gitbook.io/nestgram/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://degreetpro.gitbook.io/nestgram/config/cli.md).

# CLI

The Nestgram CLI

## About CLI

We recommend to use CLI in your project. You can create project using CLI, install Nestgram modules and generate resources

![Nestgram CLI](https://3560755491-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHts9egaBIQFAK8US18Eu%2Fuploads%2Fcqr99f3IAuU2ph0TPfRP%2FCLI%20Banner.jpeg?alt=media\&token=f6c5f7e5-eb51-44ac-aa91-7af906af2d19)

## Installing CLI

```nginx
npm i -g @nestgram/cli
```

## Using

### Help

```nginx
nestgram
```

### Create new project

```
nestgram new project-name
```

### Add module (e.g. mongo module)

```
nestgram add
```

### Generate resource (module, controller, service)

```
nestgram gen resource-name
```
