Skip to content

CLI Reference

Sudhanshu edited this page Nov 11, 2026 · 1 revision

CLI Reference

Entrypoint: langgraph_example_multi_agents.py (note the exact filename). All commands assume the project root is the current directory.

Flag Behavior
--list Print 18 available topics and whether they need OpenAI
--topic NAME Run a single selected example
--self-test Run and assert all 16 offline examples
--with-llm Include both optional OpenAI examples
--model NAME Override the hosted model name
--export-mermaid DIR Save each compiled graph's .mmd source
--json-output FILE Save results to JSON
python .\langgraph_example_multi_agents.py --export-mermaid .\generated-graphs --json-output .
esults.json

--self-test cannot be combined with --topic or --with-llm (enforced by the argument parser). CLI-generated diagrams describe each concrete compiled graph; see Mermaid Diagrams for the architectural diagrams.

Clone this wiki locally