NitroStack Logo
/python
/cli
/overview

CLI Introduction

The Python CLI is nitrostack-py, installed with pip install nitrostack. It is not nitrostack-cli and not npx @nitrostack/cli.

Bash
nitrostack-py --help
python -m nitrostack.cli.main --help

Commands

CommandDescription
initScaffold a project from python-starter, python-pizzaz, or python-oauth
devHot-reload development server
startProduction server (no reload)
packBuild a deployable wheel (never includes .env)
generateBoilerplate: tool, module, guard, pipe, interceptor, filter, service
installInstall deps (uv sync or pip)
upgradeBump nitrostack and refresh agent skills
validateLint deps, @mcp_app imports, @module refs
registerWrite Claude Desktop MCP config

There is no build command. Use pack for an artifact and start to run production.

Typical lifecycle

Bash
nitrostack-py init my-server --template python-starter
cd my-server
nitrostack-py dev
nitrostack-py validate
nitrostack-py pack
nitrostack-py start

Ports

Flags --port and --widget apply to init, dev, and start. Resolution order: CLI flags → env (PORT / MCP_SERVER_PORT, WIDGETS_DEV_PORT) → project .env → defaults 3000 / 3001.

Next steps