GitHub
All wiki pages

CLI Reference

Every tren command, condensed. For full flag-by-flag detail, see docs/command-reference.md in the repo.

tren setup

First-time environment setup: virtual environment, toolchain (NumPy, Jupyter, Jupytext, nbdev, Rich, PyYAML, psutil), Jupyter kernel registration, local profile.

FlagPurpose
--skip-venvSkip virtual environment creation
--skip-packagesSkip package installation
--skip-profileSkip local profile creation
--forceRecreate existing components instead of reusing them

tren system

SubcommandPurpose
infoEnvironment info (Python version, platform, venv, TrenTorch/NumPy versions, disk/memory). --json
healthQuick status-only health check
jupyterStart a Jupyter server. --notebook/--lab, --port N
updateCheck for and install a newer release
logoThe TrenTorch logo, explained
resetReset to a pristine state. --force/-f, --keep-progress, --ci

tren module: the primary student workflow

SubcommandPurpose
start NNStart a module for the first time, opens Jupyter. --no-jupyter
view NNOpen a module's notebook with no status updates
resume [NN]Continue working (defaults to last-worked module)
complete [NN]The one that matters. Tests, exports to the real package, updates progress. --skip-tests, --skip-export, --all
test [NN]Same testing as complete, without exporting. --all, --stop-on-fail, --unit-only, --no-integration
reset [NN]Reset a module (or --all) to a clean state
statusProgress across all modules
listAll available modules. --json
path NNA specific file path for IDE integration: --notebook, --source, or --guide

tren dev: maintainer/CI tooling, not for students

SubcommandPurpose
testThe unified test runner. --unit, --integration, --e2e, --cli, --inline, --milestone, --user-journey/--release, --all; --module N; --ci for JSON + strict exit codes
preflightPre-release verification. --quick (~10s), --full (~2-5min), --release (~10-30min)
exportRebuild the curriculum from data/src/*.py: notebooks + the real package, from the reference solutions. --all or specific module names
cleanmake clean at the project root

tren package

SubcommandPurpose
reset {package,all,progress,milestones,config}Reset specific pieces of state
nbdev --export/--build-docs/--test/--cleanDirect nbdev operations

tren milestone

SubcommandPurpose
listAvailable milestones and status. --simple
run IDRun a milestone (checks prerequisites first). --part N, --skip-checks
info IDDetails on one milestone
statusProgress and achievements. --detailed
timelineThe historical arc as a tree or --horizontal progress bar
test [ID]Test milestone requirements
demo IDRun a capability demonstration

ID accepts either the number (04) or an alias (perceptron, xor, mlp, cnn, transformer, mlperf).

tren benchmark

SubcommandPurpose
baselineLightweight setup-validation benchmark, scored against a reference system out of 100
capstoneFull Module 20 performance evaluation. --track {speed,compression,accuracy,efficiency,all}

tren olympics

Competition events, currently a "coming soon" placeholder (logo, status).

Global options

--version, --verbose/-v, --no-color: apply to tren itself, before any subcommand.