Skip to main content

CLI Reference

The repx command-line interface provides experiment management, execution, and debugging capabilities.

Synopsis

repx [OPTIONS] <COMMAND> [ARGS]

Global Options

OptionShortDescription
--lab <PATH>Lab directory path (default: ./result)
--verbose-vIncrease log verbosity (repeatable)
--resources <PATH>Resource configuration file
--target <NAME>Execution target from config.toml
--scheduler <TYPE>Override scheduler (local, slurm)

Commands

repx run

Submit an experiment run for execution.

repx run <RUN_NAME> [OPTIONS]
OptionDescription
--dry-runValidate submission without execution
--forceRe-execute completed jobs
--jobs <N>Maximum parallel jobs
--nativeForce native execution mode
--bwrapForce bubblewrap execution mode
--dockerForce Docker execution mode
--podmanForce Podman execution mode

Exit Codes:

CodeMeaning
0All jobs completed successfully
1One or more jobs failed
2Configuration or validation error

repx list

Display available runs in the Lab.

repx list [OPTIONS]

Output includes run names and job counts.

repx tui

Launch the terminal user interface for job monitoring.

repx tui [OPTIONS]

The TUI provides real-time job status, log streaming, and resource visualization.

repx viz

Generate experiment topology visualization.

repx viz [OPTIONS]
OptionDescription
--output <PATH>Output file (default: topology.png)
--format <FMT>Output format: svg, png, pdf, dot

repx debug-run

Execute a job in debug mode with optional interactive shell.

repx debug-run <JOB_ID> [OPTIONS]
OptionDescription
--command <CMD>Command to execute (default: interactive shell)

The job environment is fully initialized, enabling inspection of inputs, environment variables, and dependency closures.

repx trace-params

Display effective parameter values for a job.

repx trace-params <JOB_ID>

Output shows parameter sources (defaults, overrides) and final resolved values.

repx gc

Remove stale artifacts from the output store.

repx gc [OPTIONS]
OptionDescription
--dry-runReport artifacts to remove without deletion
--keep <N>Retain N most recent runs

Environment Variables

VariableDescription
REPX_LOG_LEVELLog verbosity: error, warn, info, debug, trace
XDG_CONFIG_HOMEConfiguration directory base (default: ~/.config)
XDG_CACHE_HOMECache directory base (default: ~/.cache)

Configuration Files

FileLocationPurpose
config.toml$XDG_CONFIG_HOME/repx/Target and global settings
resources.tomlWorking directory or configSLURM resource mappings

Examples

Execute a run locally with limited concurrency:

repx run simulation --lab ./result -j 4

Submit to a remote SLURM cluster:

repx run training --target cluster --resources gpu-config.toml

Debug a failed job:

repx debug-run abc123-stage-preprocess

Generate SVG topology diagram:

repx viz --format svg --output experiment.svg