[**Documentation**](../../../../README)

***

[Documentation](../../../../README) / [@zerotal/core](../../README) / 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

```bash
# 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

- [KeyGenerateCommand](classes/KeyGenerateCommand)

## Build & assets

- [CompileCommand](classes/CompileCommand)
- [CssBuildCommand](classes/CssBuildCommand)

## Diagnostics

- [LintPackagesCommand](classes/LintPackagesCommand)
- [ReplCommand](classes/ReplCommand)
- [RouteListCommand](classes/RouteListCommand)
- [StatusCommand](classes/StatusCommand)

## Other

### StartCommand

Renames and re-exports [ServeCommand](classes/ServeCommand)

## Scaffolding (make:*)

- [MakeCommandCommand](classes/MakeCommandCommand)
- [MakeControllerCommand](classes/MakeControllerCommand)
- [MakeEventCommand](classes/MakeEventCommand)
- [MakeJobCommand](classes/MakeJobCommand)
- [MakeListenerCommand](classes/MakeListenerCommand)
- [MakeMiddlewareCommand](classes/MakeMiddlewareCommand)
- [MakeNotificationCommand](classes/MakeNotificationCommand)
- [MakeObserverCommand](classes/MakeObserverCommand)
- [MakePackageCommand](classes/MakePackageCommand)
- [MakePolicyCommand](classes/MakePolicyCommand)
- [MakeProviderCommand](classes/MakeProviderCommand)
- [MakeRequestCommand](classes/MakeRequestCommand)
- [MakeResourceCommand](classes/MakeResourceCommand)
- [MakeTestCommand](classes/MakeTestCommand)

## Serving

- [ReloadCommand](classes/ReloadCommand)
- [ServeCommand](classes/ServeCommand)
- [WorkerCommand](classes/WorkerCommand)

## Testing

- [TestCommand](classes/TestCommand)
