Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

CLI Reference

Commands

CommandPurpose
fungi serverStart server
fungi sqlExecute SQL
fungi jobManage jobs
fungi pipelineManage pipelines
fungi mcpMCP server / tools
fungi --helpShow help
fungi --versionShow version

Global Options

OptionDefaultDescription
--hostlocalhostServer host
--port50051Server port
--localfalseRun 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