Nest CLI: a global npm binary that wraps Angular schematics, chokidar and a pinned TypeScript
CLI tool for Nest applications 🍹
At a glance
- What is it?
- @nestjs/cli installs one nest binary globally and hands scaffolding to @nestjs/schematics. Its README is a signpost, so most behavior sits on docs.nestjs.com.
- Who is it for?
- Install it globally if you start Nest projects on a machine with Node 20.11 or newer and are happy to follow docs.nestjs.com for every flag. Teams that need a pinned CLI per project should check the installed version by hand, because the repository documents no way to do it.
- Can I use it commercially?
- Check first. The repository uses a licence we do not classify automatically, so read its LICENSE file before any commercial use.
- Is it still maintained?
- Yes. The repository last received commits 1 day ago.
- What is it written in?
- Mainly TypeScript, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.
Star history
- nestjs/nest-cli2,209 ★ · +3
| Repository | 2026-10-08 | 2026-11-25 |
|---|---|---|
| nestjs/nest-cli | 2.2k | 2.2k |
3 Stars in the last 48 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
bin/nest.js is a Node 20.11 script, and the engines field enforces nothing else
package.json maps the `nest` command to bin/nest.js through its bin field, sets "type": "module", and declares "node": ">= 20.11" under engines. That is the whole runtime requirement the repository states. A machine on Node 18 will not meet it, and the package declares no fallback build for older runtimes.
The package is published as @nestjs/cli, version 12.0.11 at the latest release. Its publishConfig sets access to public, so the install needs no registry login. The start script is `node bin/nest.js`, which is how a contributor runs the CLI from a clone without installing it globally.
The description field in package.json reads "Nest - modern, fast, powerful node.js web framework (@cli)". That text describes the framework and says nothing about what this tool does. The accurate description is in the README: a command-line tool to initialize, develop and maintain Nest applications.
One global npm install means one CLI version for every project on the machine
The only install command in the README is:
$ npm install -g @nestjs/cliThe -g flag puts the `nest` binary on the PATH of the whole machine. Two projects on the same laptop therefore share whatever version was installed last, and the README does not describe a project-local install, a version pin or a way to run the CLI without installing it. If a team needs every developer on 12.0.11, the repository gives no instruction for that, and the check has to be done by hand with the package version.
Upgrading means running the same global install again. The README documents no uninstall step, no update command and no check for which version is active. Anyone who has installed an older major globally and hit a mismatch with a newer project has no guidance here.
Scaffolding is delegated to Angular's schematics engine and the @nestjs/schematics collection
The README states that the CLI works with schematics from the angular-cli repository and ships with built in support for the collection at @nestjs/schematics. package.json confirms the wiring: @angular-devkit/core, @angular-devkit/schematics and @angular-devkit/schematics-cli are all pinned to 22.2.3, and @nestjs/schematics is declared as ^12.0.0.
The split matters for debugging. The templates that produce files live in a separate repository, so a wrong generated file is a bug in @nestjs/schematics, and a failure in how a schematic is loaded or run belongs to the Angular devkit packages. The caret range on @nestjs/schematics means a fresh install can pick up any 12.x release of the collection, while the Angular packages are held to one exact version.
The README names no other collection. It does not document how to plug in a custom one, so a team that wants its own file templates has to look in the official documentation at docs.nestjs.com/cli/overview. Nothing in the repository material says whether that is supported.
Dev mode watches files with chokidar 5.0.0 and compiles with TypeScript pinned to ~6.0.2
The README promises three jobs beyond scaffolding: serving the project in development mode, building it, and bundling it for production distribution. The dependency list shows the parts behind them. chokidar 5.0.0 is the file watcher, tsconfig-paths 4.2.0 resolves path aliases from tsconfig, and typescript is declared as ~6.0.2 in dependencies, not in devDependencies.
That last placement has a consequence. TypeScript ships inside the CLI's own install, with a tilde range that allows only 6.0.x patch updates. A project that wants a different compiler version has no way to read from the repository what happens when its own TypeScript and the CLI's differ, because the README is silent on it. The repository states nothing about TypeScript 7.
The watch flags, the build options and the bundling behavior are not listed in the README at all. Each is a link away on docs.nestjs.com.
The terminal layer is commander 15.0.0, inquirer prompts, ora spinners and a cli-table3 renderer
Command parsing uses commander 15.0.0. Interactive questions come from @inquirer/prompts 8.7.3, the spinner from ora 9.4.1, tables from cli-table3 0.6.5, colors from ansis 4.4.0 and emoji from node-emoji 2.2.0. The repository splits its source into three folders that map onto this: commands/, actions/ and lib/, and the lint script `oxlint lib/ commands/ actions/` covers exactly those.
Two more dependencies point at configuration handling. jsonc-parser 3.3.1 reads JSON that contains comments, and minimatch 10.2.6 matches glob patterns. Neither the README nor package.json describes a nest-cli.json configuration file or its keys. The README sends readers to docs.nestjs.com/cli/overview for that.
Tests run on vitest, with a separate end-to-end config and a husky hook on every install
The repository has two test entry points. `npm test` runs `vitest run`, and `npm run test:e2e` runs `vitest run -c vitest.e2e.config.ts`. The test:dev script calls `npm run clean` first, then starts vitest in watch mode. The clean script is `node tools/clean.js`.
The prepare script is `husky && node tools/postinstall.cjs`. It fires on install from a clone, so a contributor gets git hooks and a post-install step without asking for them. Commit messages are checked by commitlint with the Angular config, and releases go through release-it, with `publish:next` publishing under the npm tag next and `publish:npm` publishing normally. Every publish script has a prepublish step that runs `npm run build`, which is `tsc`.
Formatting is prettier over **/*.ts files, and linting is oxlint, not ESLint. A contributor who expects an ESLint config will not find one in the top-level listing, which has .oxlintrc.json and .prettierrc.
Three releases in nine days, a push on 24 October, and a license field that disagrees with itself
The repository is not archived. Release 12.0.9 landed on 19 October 2026, 12.0.10 on 20 October and 12.0.11 on 27 October. The last push to the default branch, master, was on 24 October 2026. Anyone checking whether the tool is current can see that it is.
The license information is less tidy. GitHub's metadata reports NOASSERTION, which means it could not map the LICENSE file to a known identifier. The README ends with "Nest is MIT licensed", and package.json sets "license": "MIT". Two of the three sources agree, and a company with a license review process should read the LICENSE file itself before relying on the third.
As for alternatives, the README points at the Angular CLI repository as the source of its schematics engine. The Angular CLI is built around the same schematics idea but for Angular workspaces, so it does not scaffold Nest modules. The Nest CLI is the tool that pairs that engine with the Nest collection.
Editorial conclusion
Install it globally if you start Nest projects on a machine with Node 20.11 or newer and are happy to follow docs.nestjs.com for every flag. Teams that need a pinned CLI per project should check the installed version by hand, because the repository documents no way to do it. Verify the license file before a legal review.
Frequently asked questions
How do I install the Nest CLI?
Run npm install -g @nestjs/cli. That is the only install command in the README, and the package declares Node 20.11 or newer under engines.
How do I install the Nest CLI globally?
The README gives $ npm install -g @nestjs/cli. The -g flag installs the nest binary machine-wide, and the README gives no project-local alternative.
What is the Nest CLI?
A command-line tool that initializes, develops and maintains Nest applications. It scaffolds projects, serves them in development mode, and builds and bundles them for production.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/nestjs-nest-cli)Star history chart for your README
[](https://hysenlabs.com/projects/nestjs-nest-cli)Was this useful?