CLI Reference¶
Reference for the merlya command-line interface.
merlya (interactive REPL)¶
Start the interactive REPL (default mode).
Options:
--verbose: enable debug logging-v,--version: show version and exit
merlya run (non-interactive / batch)¶
Execute a single command or a list of commands from a file.
Options:
-f,--file FILE: load tasks from a YAML (.yml/.yaml) or text file-y,--yes: auto-confirm prompts (unsafe in production unless you trust inputs)--format text|json: output format (default:text)-q,--quiet: minimal output-m,--model brain|fast: model role for task execution (brainfor complex reasoning,fastfor quick tasks)
Verbose logging:
Exit codes:
0: all tasks succeeded1: one or more tasks failed
See Non-Interactive Mode for allowed/blocked slash commands and task-file formats.
merlya config¶
Manage configuration values stored in ~/.merlya/config.yaml.
Notes:
- Keys use the format
section.key(exactly 2 segments), e.g.model.providerorlogging.console_level. llm.*is accepted as an alias formodel.*(legacy).merlya configdoes not store secret values; API keys are sourced from environment variables or the system keyring.
Examples:
merlya config set model.provider openrouter
merlya config set model.model amazon/nova-2-lite-v1:free
merlya config get model.provider
REPL slash commands¶
Once inside the REPL, use slash commands like /hosts, /ssh, /model, /mcp, etc. The full reference is in Slash Commands (REPL).