marko/cli

Marko Framework CLI

Maintainers

Package info

github.com/marko-php/marko-cli

pkg:composer/marko/cli

Statistics

Installs: 16

Dependents: 2

Suggesters: 0

Stars: 0

0.0.1 2026-03-25 17:53 UTC

This package is auto-updated.

Last update: 2026-03-25 21:07:20 UTC


README

Global command-line tool --- run marko from any project directory to execute commands.

Installation

composer global require marko/cli

Quick Example

use Marko\Core\Attributes\Command;
use Marko\Core\Command\CommandInterface;
use Marko\Core\Command\Input;
use Marko\Core\Command\Output;

#[Command(name: 'greet', description: 'Say hello')]
class GreetCommand implements CommandInterface
{
    public function execute(Input $input, Output $output): int
    {
        $output->writeLine('Hello, World!');

        return 0;
    }
}

Documentation

Full usage, API reference, and examples: marko/cli