@lbprox/cli
v0.2.1
Published
OneCLI - Internal project scaffolding tool
Readme
onebase / @onecli/cli
OneCLI's published scaffolding CLI. The package publishes compiled dist/ output and
the backend template under templates/backend/; runtime template resolution is package-relative.
Usage
npx onebase create my-api \
--type backend \
--db postgres \
--orm prisma \
--cache redis \
--socket none \
--yesOptions:
--yesaccepts the default backend profile without prompting.--type,--db,--orm,--cacheand--socketselect individual layers.--dry-runvalidates and prints the deterministic file plan without writes.--skip-installpublishes the generated project without runningnpm install.
The generated project is NestJS + Express with PostgreSQL or MongoDB, Prisma or TypeORM, Redis/ioredis, BullMQ, Zod, Pino, JWT access tokens, opaque refresh-token rotation, RBAC, health checks, Swagger, Docker Compose and generated tests. Realtime can be disabled or use Centrifugo or Socket.IO.
The CLI never force-overwrites an existing destination. Unsupported profiles and unsafe project names fail before staging is created.
