CLI¶
The caddforge CLI is the main user interface for running workflows and inspecting jobs.
Open documentation¶
Install the published caddforge-docs package to enable the optional
documentation command. Version 0.5.0 supplies the installed viewer:
The published public bundle includes this package automatically. Core-only and selective plugin installations add it separately. See the version matrix for current availability.
The command serves the documentation bundled with the installed docs release, opens the default
browser, and runs until Ctrl+C. No source checkout, documentation build tools, or internet connection
are needed. It defaults to 127.0.0.1 with an automatically assigned port:
caddforge docs --host 0.0.0.0 --port 8001
caddforge docs --host localhost --no-browser
caddforge docs --host ::1
--host accepts hostnames, IPv4, and IPv6 addresses. Wildcard bindings open a loopback browser URL;
remote clients should use the server's reachable address and printed port. --no-browser suppresses
automatic opening. If no browser can be launched, the server stays available at the printed URL.
The command is absent when the docs package is not installed.
Discover tools¶
Show a config template¶
Example:
Run a workflow¶
Examples:
caddforge run docking unidock --config unidock.yaml
caddforge run md openbpmd --config openbpmd.yaml
caddforge run fep openfe-abfe --config abfe.yaml
Pack a Slurm environment¶
Create a relocatable Conda environment archive and its managed SHA-256 sidecar:
# Pack the active environment.
caddforge pack-env --output /shared/envs/caddforge-dev.tar.gz
# Pack a named environment.
caddforge pack-env --name caddforge --output /shared/envs/caddforge.tar.gz
# Pack an explicit environment prefix.
caddforge pack-env --prefix /scratch/$USER/envs/caddforge \
--output /shared/envs/caddforge.tar.gz
--name and --prefix are mutually exclusive. The output must end in .tar.gz. Existing archive
or sidecar files are protected unless --force is supplied:
For an intentionally modified Conda environment whose package metadata references missing files,
--ignore-missing-files forwards the corresponding conda-pack option. The resulting archive may
be incomplete, so use this only when those omissions are understood:
The command keeps the conda-pack percentage bar on one updating terminal line, streams normal
messages, prints periodic elapsed-time and archive-size heartbeats during quiet periods, and reports
hashing progress. On success it prints the archive path, sidecar path, digest, size, elapsed time,
and the slurm_env_pack_path config entry.
The generated sidecar is named <archive>.sha256 and uses standard sha256sum format. See the
Slurm backend guide for cache and compatibility behavior.
Jobs¶
caddforge status <job-id>
caddforge logs <job-id>
caddforge logs <job-id> --follow
caddforge export <job-id>
logs --follow prints newly synchronized output until the job reaches a terminal state. Use
--poll-interval <seconds> to change the default one-second check interval. Follow mode tolerates
temporary log-file and registry outages, handles scratch-synchronized snapshot replacement, and
suppresses duplicate lines carrying the same event=<sequence> identifier. Press Ctrl+C to stop
following without cancelling the job.
In core 0.24.0, following a task-graph parent also combines its
declared child stdout/stderr with source labels while the terminal reducer is
waiting. Worker events include UTC timestamps and attempt IDs; duplicate event
IDs are suppressed per source and attempt. Quiet periods emit driver status
messages, and workflows using the shared progress helpers report stage progress,
heartbeats and measured ETAs. Stage ETAs exclude scheduler wait and later stages.
See the component versions for compatible packages.
Workflow results are stored in the job run directory by default. Use caddforge export <job-id> to
copy results/ back to the submission directory, or set export_results: true in the workflow
config to do that automatically when the job finishes.
Pipelines¶
caddforge pipeline run --config pipeline.yaml
caddforge pipeline status <pipeline-id>
caddforge pipeline show-artifacts <pipeline-id>
Recovering optional exports¶
Exports commit independently of scientific execution. results_export.json records
pending, running, retrying, needs_attention or complete, destination,
verified/total files, pending components and errors. Five immediate copy passes use
1, 2, 4 and 8 second delays for transient errors. The GUI runs one shared maintenance
worker per workspace, adopts older partial exports and retries with 30-second to
five-minute backoff. Without a running GUI/controller, use the CLI to retry manually:
caddforge export <job-id> --status # read-only structured status
caddforge export <job-id> # repair the existing reserved destination
A failed copy does not suppress other replicas. Family completion requires every
expected component; committed result/attempt evidence overrides stale child metadata.
Permission, missing-input, quota and ownership conflicts require attention. Foreign or
user-modified files are preserved. Export retries never restart scientific work.
GUI tools use the common authenticated export API. The manual export card is
currently hidden; automatic exports and background recovery remain available.
Core plan_retirement/retire_artifacts provide reusable, checksummed replacement
commits and optional cleanup; controller maintenance retries pending retirement.
Allocated workers use durable files without accessing the SQLite registry.