CLI Reference
What you will find here
Command reference for python3 -m bnnr aligned to src/bnnr/cli.py.
When to use this page
Use this for no-code workflows: training, report reading, dashboard replay/export.
Entry point
python3 -m bnnr --helptrain
python3 -m bnnr train --config CONFIG [OPTIONS]Supported datasets
mnistfashion_mnistcifar10imagefoldercoco_miniyolo
Main options
--config, -c(required)--dataset--data-dir--data-path(required forimagefolder,coco_mini,yolo)--output, -o--device, -d(cuda,cpu,auto)--epochs, -e--seed, -s--no-xai--augmentation-preset, --preset(auto,light,standard,aggressive,gpu)--with-dashboard / --without-dashboard--dashboard-port--no-auto-open--dashboard-token--batch-size--max-train-samples--max-val-samples--num-classes(forimagefolder)
Behavior notes
--with-dashboard(default): starts live dashboard server and keeps process alive.--without-dashboard: no live server; good for one-shot runs.- CLI keeps event logging enabled so
dashboard exportworks after training.
Examples
# CIFAR-10 one-shot run
python3 -m bnnr train \
--config examples/configs/classification/cifar10_example.yaml \
--dataset cifar10 \
--preset light \
--without-dashboard
# ImageFolder
python3 -m bnnr train \
--config examples/configs/classification/imagefolder_example.yaml \
--dataset imagefolder \
--data-path /path/to/dataset
# YOLO detection
python3 -m bnnr train \
--config examples/configs/detection/detection_underwater.yaml \
--dataset yolo \
--data-path /path/to/data.yamlreport
python3 -m bnnr report path/to/report.json --format summary
python3 -m bnnr report path/to/report.json --format jsonNotes:
--format htmlis intentionally rejected in current CLI.- Use dashboard export for static HTML output.
Dashboard commands
python3 -m bnnr dashboard serve --run-dir reports --port 8080
python3 -m bnnr dashboard export --run-dir reports/run_YYYYMMDD_HHMMSS --out exported_dashboarddashboard serve options:
--run-dir--port--frontend-dist--token(or envBNNR_DASHBOARD_TOKEN)
dashboard export options:
--run-dir(required)--out(required)--frontend-dist
Dashboard usage notes (important)
dashboard serveprints both Local URL and Network URL plus terminal QR code.- Open Local URL on desktop first, then use QR from phone on the same network.
- For secured controls, use
--token(orBNNR_DASHBOARD_TOKEN). - For production workflow details (pause/resume, mobile access, export), see the Dashboard Guide.
Utility commands
python3 -m bnnr list-augmentations
python3 -m bnnr list-augmentations --verbose
python3 -m bnnr list-presets
python3 -m bnnr list-datasets
python3 -m bnnr version