CLI Reference
The r8r command-line tool provides everything you need to create, run, and manage workflows.
Global options
Options: -c, --config <FILE> Config file path [default: r8r.toml] -v, --verbose Enable verbose logging -q, --quiet Suppress non-error output -h, --help Print help -V, --version Print versionCommands
r8r init
Create a new workflow from a template.
r8r init <name> [options]
Options: -t, --template <NAME> Template to use [default: http] -d, --dir <PATH> Target directoryExamples:
# Create basic HTTP-triggered workflowr8r init my-workflow
# Create scheduled workflowr8r init daily-report --template schedule
# Create from custom templater8r init custom --template ./templates/custom.yamlr8r run
Start the r8r server and execute workflows.
r8r run [options]
Options: -w, --workflows <DIR> Workflows directory [default: ./] -p, --port <PORT> HTTP port [default: 3000] -H, --host <HOST> Bind address [default: 0.0.0.0]Examples:
# Run with defaultsr8r run
# Custom portr8r run --port 8080
# Specific workflows directoryr8r run --workflows ./my-flowsr8r trigger
Manually trigger a workflow.
r8r trigger <workflow> [options]
Options: -d, --data <JSON> Trigger data -f, --file <PATH> Load data from fileExamples:
# Trigger with inline datar8r trigger my-workflow --data '{"key": "value"}'
# Trigger from filer8r trigger my-workflow --file ./payload.jsonr8r validate
Validate workflow files without running them.
r8r validate [options] [files...]
Options: --strict Strict validation modeExamples:
# Validate all workflowsr8r validate
# Validate specific filer8r validate ./my-workflow.yamlr8r build
Build optimized release binary.
r8r build [options]
Options: --release Release build (optimized) --target <TRIPLE> Cross-compilation targetr8r deploy
Deploy to cloud platforms.
r8r deploy [options]
Options: -p, --platform <NAME> Target platform (fly, railway, render) --dry-run Show what would be deployedr8r logs
View workflow execution logs.
r8r logs [options]
Options: -f, --follow Follow log output -n, --lines <N> Number of lines [default: 100] -w, --workflow <NAME> Filter by workflowr8r completions
Generate shell completions.
r8r completions <SHELL>
Supported shells: bash, zsh, fish, powershell, elvishExamples:
# Bashr8r completions bash > /etc/bash_completion.d/r8r
# Zshr8r completions zsh > ~/.zsh/completions/_r8r