title: "CLI Reference · Nael Framework" description: "Full reference for the nl CLI including generators, diagnostics, and workspace scripts."
nl CLI
The CLI wraps Bun scripts, code generators, and project diagnostics so you can stay focused on features. Every command mirrors NestJS naming while embracing Bun-native performance.
bun install --global @nl-framework/cliPrefer local devDependency? Run bun add -D @nl-framework/cli inside your repo and call via
bun x nl ....
nl new shipping-service --template=graphql --features=auth,redisTemplates ship with sensible defaults: configuration module, structured logger, health checks, and pluggable transports. Flags control stack pieces (Redis, queues, federation gateway, Dapr sidecars).
Generate artifacts
Generators respect the current working directory and automatically register the new class inside the
parent module. Use --public to export from the index barrel.
nl generate module billing --publicEveryday scripts
nl proxies core Bun scripts so CI stays simple. Call nl dev to boot the active service with
watch mode, or add --cwd to run from any example folder.
nl dev # starts Bun dev servernl start # production bootnl build # emits dist/ for all packagesCommand matrix
Diagnostics
nl doctor inspects Bun versions, ensures Postgres is reachable, validates Dapr sidecars, and confirms
Better Auth secrets exist before deployment. Pass --fix to auto-create missing files.
nl doctor --checks env,versions --fixNeed more? Wire your own health checks and register them via DoctorRegistry.register() inside
your service bootstrap.
Where to go next
Review the installation matrix or learn how we build Better Auth experiences in the techniques guide.