CLI
@di-framework/cli is app-first: scaffold, typecheck, and build applications built with @di-framework/*. Monorepo maintainer workflows live under mx.
Requires Bun. The package ships TypeScript source as the bin entry — no platform-specific compiled binary.
Installation
From a linked checkout of this monorepo:
App commands
Command | Description |
|---|---|
| Scaffold a new app ( |
| Emit with |
| Typecheck with |
init installs @di-framework/tsc and @di-framework/cli by default, sets plugins: [{ "transform": "@di-framework/tsc" }], and wires "build"/"check" to di-framework (ttsc and TypeScript 7+ come with @di-framework/tsc). Runtime checks are injected on ttsc --emit (build/start). dev runs source with Bun (no emit). First ttsc build needs a Go toolchain — see Runtime type checks.
init options
Flag | Description |
|---|---|
| Target directory (default: |
|
|
| Overwrite existing files |
| Show help |
Existing files are skipped unless --force is set.
Maintainer commands (mx)
Used only inside the di-framework monorepo (package graph build, E2E, publish):
Legacy top-level test/typecheck/publish still redirect to mx with a note so old scripts keep working.
Next Steps
Installation - Core package setup
Quick Start - Basics after scaffolding
Runtime type checks -
ttsctransform (@di-framework/tsc; wired byinit)