najm-cli
v1.1.14
Published
CLI tool for najm framework - scaffolding, code generation, and project setup
Maintainers
Readme
najm-cli
CLI scaffolding tool for Najm projects. Generate controllers, services, modules, Next.js apps, and more.
Install
bun add -g najm-cliOr use without installing:
bunx najm-cli create my-projectCommands
najm create <project-name>
Scaffold a new Najm project with TypeScript, DI, and recommended structure.
najm create my-apinajm init next [project-name]
Initialize Next.js with Najm backend (App Router).
najm init next my-next-appnajm new <type> <name>
Generate a scaffolded component. Supported types:
najm new controller product # → src/features/product/product.controller.ts
najm new service product # → src/features/product/product.service.ts
najm new repository product # → src/features/product/product.repository.ts
najm new module product # → full feature modulenajm generate <type> <name>
Alias for najm new.
najm generate controller usernajm database <action>
Database management.
najm database migrate # Run pending migrations
najm database seed # Seed the databasenajm chat:seed
Seed chatbot data (LLM providers, initial configuration).
najm chat:seednajm rag:init
Scaffold RAG config files (routing.json, semantics.json, routing-test-cases.json).
najm rag:initnajm rag:scan
Scan MCP tools and auto-generate semantic phrases for RAG routing.
najm rag:scan # Scan and write to semantics.json
najm rag:scan --dry-run # Preview without writing
najm rag:scan --prune # Remove orphaned entriesProduction Notes
- CLI is a development tool — do not include in production container
- Generated projects include
.env.examplewith required variables - Run
najm init nextfor production-ready Next.js + Najm setup
