Skip to main content
zerotal

Documentation


Documentation / @zerotal/core / command/builtin

command/builtin

Built-in CLI commands shipped with Zerotal, published as the @zerotal/core/commands subpath.

These are the command classes the framework registers automatically during CommandRunner.boot — the make:* scaffolders, serve/worker process launchers, and diagnostics like status, reload, and route:list. They are all subclasses of the Command base class and are invoked through the scaffolded app's CLI entry point, zt.ts, as bun zt <command>.

Which commands are available depends on the boot mode: serve, reload, status, and route:list are registered in every environment, while the scaffolding and worker commands are only registered outside web mode.

Example

# Start the dev server
bun zt serve --dev

# Scaffold a controller and list the registered routes
bun zt make:controller PostController --resource
bun zt route:list

App setup

Build & assets

Diagnostics

Other

StartCommand

Renames and re-exports ServeCommand

Scaffolding (make:*)

Serving

Testing