CLI Reference
Commands
| Command | Purpose |
|---|---|
fungi server | Start server |
fungi sql | Execute SQL |
fungi job | Manage jobs |
fungi pipeline | Manage pipelines |
fungi mcp | MCP server / tools |
fungi --help | Show help |
fungi --version | Show version |
Global Options
| Option | Default | Description |
|---|---|---|
--host | localhost | Server host |
--port | 50051 | Server port |
--local | false | Run embedded, no server |
server
fungi server # default 0.0.0.0:50051
fungi server --port 8080
fungi server --host 0.0.0.0 --port 50051
sql
fungi sql --query "SELECT 1"
fungi sql --query "SELECT 1" --local
fungi sql --file query.sql
fungi sql --query "SELECT 1" --host myserver --port 50051
job
fungi job list
fungi job status --id job-123
fungi job cancel --id job-123
pipeline
fungi pipeline sample --output my-pipeline.yaml
fungi pipeline validate --config my-pipeline.yaml
fungi pipeline run --config my-pipeline.yaml
fungi pipeline list
See Guides / Pipelines for config reference.
mcp
fungi mcp serve # start MCP server
fungi mcp tools # list tools
fungi mcp call <tool> --args '{...}' # invoke a tool
See Operations / MCP.
Examples
$ fungi sql --query "SELECT 1 as id, 'Alice' as name"
id | name
---+------
1 | Alice
$ fungi sql --query "SELECT user_id, SUM(amount) AS total FROM events GROUP BY user_id"
user_id | total
--------+------
user-1 | 300
user-2 | 300