composer require tempest/console
final readonly class Hello
{
public function __construct(private Console $console) {}
#[ConsoleCommand]
public function world(): void
{
$this->console->writeln('Hello World!');
}
}
Read the docs: https://tempest.stitcher.io/console/01-getting-started.