Skip to main content

CLI Graph Runner

You can execute any graph directly from the command line without starting the server. This is handy for batch runs, CI, or reproducing a pipeline headlessly.

cd backend
python run_graph.py ../examples/Usage_Example/CNN-MNIST/TrainCNN-MNIST/graph.json

The runner discovers all nodes via the registry, validates the DAG, executes it topologically, and prints per-node output summaries.

Options

FlagEffect
--validate-onlyValidate the graph (DAG, types, ports, Start node) without executing it.
--verboseEmit intermediate step traces, the same data the Inspector's Steps tab shows.
# Validate an architecture without running it
python run_graph.py ../examples/Model_Architecture/ResNet-SkipConnection-CNN/graph.json --validate-only

Where graphs come from

Any graph exported from the UI (Tabs & Persistence → Import / export) is a plain JSON file in the same format, so you can build a pipeline visually and then run it from the CLI. The bundled examples under examples/ are ready to run — see the Examples Gallery.