Nest Arch

CLI reference

Run the wizard or generate headless projects with options and JSONC configuration.

Documentation reviewed for version 1.0.0

The @nest-arch/tui package publishes the nest-arch executable.

TaskCommand
Run the newest release oncenpx @nest-arch/tui@latest
Install globallynpm install --global @nest-arch/tui@latest
Start a global installationnest-arch
Print the installed versionnest-arch --version
Show helpnest-arch --help
Open the wizard explicitlynest-arch --ui
Generate without promptspnpm dlx @nest-arch/tui@latest my-api
Generate from JSONCpnpm dlx @nest-arch/tui@latest --config ./nest-arch.jsonc

Without arguments or with --ui, the CLI opens the wizard and requires an interactive terminal. A project name or --config generates without prompts. See the headless guide for examples and project reproduction.

The CLI package does not publish a generate:module command. Module generation, when available from a separate development package or workflow, is outside this TUI reference.

Generation options

OptionValues or purpose
--configJSONC file path; CLI flags take precedence
--output-dirExact destination directory, new or empty
--project-typesingle; monorepo (planned for v2.0; parser option only)
--architecturenest-api, nest-gateway, nest-microservice
--http-providerexpress, fastify
--package-managerpnpm, npm, yarn, bun
--authnone, passport, better-auth, better-auth:stateless
--formatternone, biome, oxlint-oxfmt, eslint-prettier-stylelint, eslint-prettier-no-stylelint
--prisma-version6, 7, 8
--descriptionDescription text
--description-base64Base64-encoded UTF-8 description, used in reproducible commands
--install-dependenciesyes, no; default no
--git, --no-gitEnable or disable Git; disabled by default
--ultracite-install-skillyes, no; default no

Parser-accepted values do not guarantee a supported combination. The support policy also applies to headless generation.

List options

OptionValues
--apirest, trpc, graphql
--databasepostgresql, mysql, sqlite, mongodb, sqlserver
--ormprisma, typeorm, drizzle
--microservicesredis, mqtt, nats, rabbitmq, kafka, grpc
--extrasdocker, health-check, rate-limiting, swagger, packages/shared, todo-example, typescript-7
--addonsagent-skills, husky, ultracite, nestjs-zod, scalar-ui
--trusted-proxy-ipsIP addresses or CIDR ranges
--ultracite-editorsEditor identifiers, such as vscode or cursor
--ultracite-agentsAgent identifiers, such as codex or claude
--ultracite-hookscursor, windsurf, codebuddy, claude, copilot

Separate values with spaces: --extras docker health-check. Use none alone to clear a list. In JSONC, use arrays and the field names in the headless example.

On this page