Copy/paste recipes for common operations. The web UI is the primary interface — CLI alternatives are noted where available.
prepare is a CLI-only step (there is no UI equivalent):
csauto prepare doe.csv TEMPLATE RUNSRun this again whenever you change doe.csv (new rows, new columns) or modify
template placeholders.
Important:
prepareis incremental for unchanged existing cases: re-running it adds only the missing cases.- If an existing case no longer matches the current DOE row or template content,
preparefails for that case.
Add rows to doe.csv, then run prepare again. New rows create new case folders,
while existing unchanged cases are kept.
If prepare reports a conflict on an existing case, either:
- generate into a new output folder, or
- remove the conflicting
RUNS/caseXXXXfolders first, then runprepareagain.
csauto doctor RUNS
csauto status RUNSFix all [FAIL] lines from doctor before proceeding.
In the Status panel: Ctrl/Cmd + A → Run Selected → fill in n, nt,
max parallel → Submit.
CLI alternative:
csauto run RUNS --n 8 --nt 2 --max-parallel 4In the Status panel: select the target rows → Run Selected.
CLI alternative:
csauto run RUNS --n 8 --nt 2 --case case0003 --case case0010In the Status panel: filter by FAILED status → select all → Run Selected.
CLI alternative:
csauto run RUNS --n 8 --nt 2 --resumeSame UI flow — with use_slurm = true in csauto.toml, each submission goes
through sbatch automatically. Verify with squeue -u "$USER" in the terminal.
CLI alternative:
csauto run RUNS --n 64 --nt 1 --max-parallel 50csauto serve RUNS --host 127.0.0.1 --port 8000
# Open http://127.0.0.1:8000serve uses the primary FastAPI server.
On the server:
csauto serve RUNS --host 127.0.0.1 --port 8000On your laptop:
ssh -L 8000:127.0.0.1:8000 your-server
# Open http://127.0.0.1:8000In the Status panel: the table refreshes automatically. Sort, filter, or search by case ID, status, or DOE column.
CLI alternative:
csauto status RUNSIn the Log Tail tab: select the case and file (listing for the solver log),
set line count, enable auto-scroll.
CLI alternative:
# Main solver log
csauto tail RUNS --case case0001 --file listing -n 200
# Launch log (if process didn't start)
csauto tail RUNS --case case0001 --file csauto.stdout -n 50 --no-followIn the Residuals Plot tab: select case(s), choose physical quantities, set start point, click Plot.
CLI alternative (export to CSV + SVG):
csauto residuals RUNS --case case0001 \
--out residuals_case0001.csv --plot residuals_case0001.svg
# Merge multiple cases
csauto residuals RUNS --case case0001 --case case0002 \
--out residuals_merged.csvIn the Timing Snapshot tab: select a case, click Load.
CLI alternative:
csauto perf RUNS --case case0001
csauto perf RUNS --case case0001 --case case0005 --out perf.csvIn the Recent Errors tab: select the case, choose severity (error, warn,
all), click Scan.
In the Status panel:
- Select the case(s) to restart
- Click Restart Selected
- Choose stop criterion:
Iterations+ number of additional iterationsPhysical time+ additional physical time
- Click Submit
csauto resolves the latest checkpoint automatically.
API alternative:
curl -s -X POST "http://127.0.0.1:8000/api/run_case" \
-H "Content-Type: application/json" \
-d '{
"cases": ["case0001"],
"n": 4,
"nt": 2,
"restart": true,
"restart_mode": "iterations",
"restart_value": 100
}'In the Status panel: select the running cases → Kill Selected.
API alternative:
curl -s -X POST "http://127.0.0.1:8000/api/kill_case" \
-H "Content-Type: application/json" \
-d '{"cases": ["case0001", "case0002"]}'In the Status panel: select cases → Clean Selected. The popup lets you choose which RESU runs to keep or delete and whether to truncate heavy logs.
CLI alternative (always preview with --dry-run first):
csauto cleanup RUNS --prune-resu --keep-last 1 --max-log-mb 100 --dry-run
csauto cleanup RUNS --prune-resu --keep-last 1 --max-log-mb 100 --clear-cidRemove all RESU history (disk space emergency):
csauto cleanup RUNS --prune-resu --keep-last 0In the Multi-Run Compare tab:
- Select cases to compare
- Choose a base case (reference)
- Choose file kind (
setup.xml,doe_row.csv,listing, ...) - Optionally add a regex filter
- Click Compare
Right-click a DONE or FAILED row in the Status panel:
- Mark Converged
- Mark Not Converged
- Clear (remove label)
# Serve with token on public interface
csauto serve RUNS --host 0.0.0.0 --port 8000 --token my-tokenAPI call with token:
curl -s -H "X-CSAUTO-TOKEN: my-token" "http://server:8000/api/status"