CLI Reference

July 22, 2026 · View on GitHub

molq is a Typer + Rich CLI for submitting, inspecting, monitoring, and cleaning up jobs on local and HPC schedulers.

molq --help          # command groups
molq submit --help   # options for one command
molq -h              # short alias

Command groups

GroupCommands
Jobssubmit · list · status · logs · watch · cancel · inspect
Historyhistory · allocations · cleanup
Livemonitor · daemon
Setupclusters · workspace · plugins

Most job commands take:

  • SCHEDULERlocal | slurm | pbs | lsf
  • --cluster — namespace (default from profile or cli_<scheduler>)
  • --profile — named profile from config.toml
  • --config — path to config file

molq submit

molq submit SCHEDULER [COMMAND]... [OPTIONS]

Resources: --cpus · --mem · --time · --gpus · --gpu-type Scheduling: --partition · --account Execution: --name · --workdir Retry: --retries · --retry-on-exit-code Dependencies (molq job IDs, not scheduler IDs): --after · --after-started · --after-success · --after-failure (repeatable) Other: --cluster · --profile · --config · --block

molq submit local echo hello
molq submit slurm --cpus 8 --mem 32G --time 4h python train.py
molq submit slurm --after-success $JOB1 python eval.py

Inspect & control

CommandPurpose
list [SCHEDULER]Active jobs (--all includes terminal)
status JOB_IDCurrent state (refreshes scheduler first)
logs JOB_IDstdout/stderr (--stream · --tail · -f/--follow)
watch JOB_IDBlock until done (--all · --timeout)
cancel JOB_IDCancel on scheduler + store
inspect JOB_IDMetadata, deps, transition timeline
historyTable with attempt / times / exit
allocationsRemembered partition/account/qos
cleanupRetention purge (-n/--dry-run)

Live

CommandPurpose
monitorFull-screen dashboard (all clusters; q to quit)
daemonReconcile loop; loads plugins (default: nerve)

Daemon & Nerve

With no [plugins] section, daemon enables the official nerve plugin (push job status to http://127.0.0.1:17890, fail-open).

[plugins.nerve]
enabled = true          # or false to disable
expand_threshold = 8
show_members = "attention"

Setup

molq clusters list
molq clusters show NAME
molq workspace sync ./src --cluster HOST -p /remote/path
molq workspace sync --pull ./out --cluster HOST -p /remote/path
molq workspace list --cluster HOST -p /remote/path
molq plugins list

Config location

Default config path is resolved via molcfg (~/.molcrafts/molq/…, or $MOLCRAFTS_HOME/molq/…). Override with --config.