Console
For the frozen mitosis stub, the semver stability contract, and a worked
custom-command example, see Console Kernel. This page is
the full method reference.
Kernel
Console::configure(?string $cliRoutesPath = null): void // set once, from config/bootstrap.php
Console::run(array $argv): int // the frozen entry point mitosis calls
Console::register(string $name, callable|string $handler): void
Console::commandNames(): array
Output helpers
Console::writeLine(string $message = ''): void
Console::success(string $message): void // green ✓ prefix
Console::error(string $message): void // red ✗ prefix
Console::info(string $message): void // cyan ℹ prefix
The 15 built-in command names
make:controller, make:model, make:migration,
make:service, migrate, migrate:status,
migrate:rollback, db:seed, db:execute, test,
health, serve, cache:clear, logs:clear,
setup.
Next steps
- Console Kernel — the full guide, including a worked custom-command example.