CLI Reference
EventFlow provides a command-line interface for running tests, generating diagrams, validating links, and scaffolding code.
Output Design Principles
All EventFlow CLI commands follow consistent output patterns:
| Element | Symbol | Color | Usage |
|---|---|---|---|
| Success | ✓ | Green | Passed tests, completed operations |
| Failure | ✗ | Red | Failed tests, errors |
| Warning | ⚠ | Yellow | Non-critical issues |
| Info | → | Cyan | Additional information |
| Progress | ◌ → ● | Blue | Running operations |
| Pending | ○ | Gray | Waiting items |
Command Categories
Test Commands
eventflow test- Run flow scenarios as testseventflow test:binding- Run tests for a specific bindingeventflow test:bindings- Run tests for all bindings
Link Commands
eventflow links:report- Show binding-test link reporteventflow links:validate- Validate binding-test linkseventflow links:sync- Sync #[TestedBy] attributeseventflow links:pair- Resolve placeholder references
Scaffold Commands
eventflow make:guard- Generate a guard bindingeventflow make:action- Generate an action bindingeventflow make:binding-test- Generate a binding test class
Utility Commands
eventflow diagram- Generate flow diagramseventflow bindings:list- List all discovered bindingseventflow bindings:missing- List missing bindings for a floweventflow init- Initialize EventFlow configurationeventflow config- Show or modify configuration
Global Options
These options work with all commands:
| Option | Description |
|---|---|
--help | Show command help |
--version | Show EventFlow version |
--config=FILE | Use specific config file |
--quiet | Suppress output |
--verbose | Verbose output |
--no-color | Disable colored output |
Version Output
$ eventflow --version
EventFlow v1.0.0
PHP 8.2.0 | PHPUnit 10.5.0Help Output
$ eventflow --help
EventFlow - Executable State Machine DSL
Usage:
eventflow <command> [options] [arguments]
Commands:
test Run flow scenarios as tests
test:binding Run tests for a specific binding
test:bindings Run tests for all bindings
links:report Show binding-test link report
links:validate Validate binding-test links
links:sync Sync #[TestedBy] attributes
links:pair Resolve placeholder references
make:guard Generate a guard binding
make:action Generate an action binding
make:binding-test Generate a binding test class
diagram Generate flow diagrams
bindings:list List all discovered bindings
bindings:missing List missing bindings for a flow
init Initialize EventFlow configuration
config Show or modify configuration
Options:
-h, --help Show help for a command
-V, --version Show version information
-q, --quiet Suppress output
-v, --verbose Verbose output
--no-color Disable colored output
--config=FILE Use specific config file
Run 'eventflow <command> --help' for command-specific help.