CLI Overview
What the NitroStack CLI does, and the commands you will use.
The NitroStack CLI creates, runs, builds, and packages NitroStack MCP servers. Every project starts from an official template, and the same CLI then takes it from your first edit to a deployable build. For every command and option in one place, see CLI Commands.
One CLI per language
Each SDK has its own command line. TypeScript projects use nitrostack-cli from the @nitrostack/cli package, and Python projects use nitrostack-py, which is installed with the nitrostack package. The commands have the same names wherever they do the same job, so the code samples on these pages have a tab for each language.
nitrostack-cli --help
# or, without installing:
npx @nitrostack/cli --helpCommands
Each command is described on one of the pages under Commands in the sidebar. build, start, and pack share Build and Ship, and install and upgrade share Manage Dependencies.
init
Create a new NitroStack project.
dev
Start development server with hot reload.
build
Build project for production.
start
Start production MCP server.
generate
Generate modules, tools, guards, health checks, and types.
upgrade
Upgrade NitroStack packages and refresh agent skills.
install
Install the project's dependencies.
cursor
Connect Cursor to your server.
pack
Create a production bundle that excludes secrets.
A few commands exist in only one CLI. build and cursor are TypeScript only; a Python project has no compile step, and runs straight from its source. validate, which checks a project before you deploy it, and register, which adds the server to Claude Desktop, are Python only.
The development loop
A typical project moves through the commands in this order:
- Run
initto create the project. - Run
devto start the server with hot reload, and connect NitroStudio to it. - Run
generateto add modules, tools, and other components as the server grows. - Test your changes in Studio.
- Package the project for production and run it.
npx @nitrostack/cli init my-server
cd my-server
npm run dev
nitrostack-cli generate module payments
npm run build
npm startStuck? See Troubleshooting.
