@startxkit/cli
v1.0.1
Published
Project CLI for existing StartXKit projects.
Downloads
907
Readme
@startxkit/cli
Project CLI for existing StartXKit projects.
Install or run it with npx after creating a StartXKit project:
npx @startxkit/cli add module usersCommands
Add A Module
npx @startxkit/cli add module usersThe command reads startxkit.config.json and generates files using the project's framework and architecture.
Layer choices:
| Choice | Files | | --- | --- | | Route + Controller | route, controller | | Route + Controller + Service | route, controller, service | | Route + Controller + Service + Repository | route, controller, service, repository | | Full | route, controller, service, repository, interface, validator |
Doctor
npx @startxkit/cli doctorChecks that the current directory has a valid StartXKit config, package file, module directory, framework, architecture, and package manager.
Info
npx @startxkit/cli infoPrints the active project configuration.
Architecture-Aware Output
Modular
src/
modules/
users/
users.route.ts
users.controller.ts
users.service.tsLayered
src/
routes/
users.route.ts
controllers/
users.controller.ts
services/
users.service.tsMinimal
src/
routes/
users.route.tsCreate A New Project
For new projects, use the create package:
npm create @startxkit@latestLicense
MIT
