Back to Ohmyzsh

NestJS Plugin for Oh My Zsh

plugins/nestjs/README.md

latest2.8 KB
Original Source

NestJS Plugin for Oh My Zsh

This plugin provides aliases for common NestJS CLI commands.

Requirements

  • NestJS CLI installed globally: npm install -g @nestjs/cli

Aliases

AliasCommandDescription
nnewnest newCreate a new NestJS project
nbnest buildBuild the NestJS application
nsnest startStart the application
nswnest start --watchStart the application in watch mode
nsdnest start --devStart the application in dev mode
nsdbgnest start --debug --watchStart the application in debug & watch mode
ngnest generateGenerate a NestJS element
ngmnest generate moduleGenerate a module
ngcnest generate controllerGenerate a controller
ngsnest generate serviceGenerate a service
nggnest generate guardGenerate a guard
ngpnest generate pipeGenerate a pipe
ngfnest generate filterGenerate a filter
ngrnest generate resolverGenerate a GraphQL resolver
ngclnest generate classGenerate a class
nginest generate interfaceGenerate an interface
ngitnest generate interceptorGenerate an interceptor
ngminest generate middlewareGenerate a middleware
ngdnest generate decoratorGenerate a custom decorator
ngresnest generate resourceGenerate a CRUD resource
nglibnest generate libraryGenerate a new library
ngsubnest generate sub-appGenerate a new sub-application (monorepo)
nanest addAdd a library to the project
ninest infoDisplay NestJS project information
nunest updateUpdate NestJS dependencies

Usage

  1. Add nestjs to the plugins array in your ~/.zshrc file:
zsh
plugins=(... nestjs)
  1. Restart your terminal or source your ~/.zshrc file:
zsh
source ~/.zshrc