Command line

flex-orch: run studies and commands, export, import and verify.

flex-orch [CONNECTION] run study.yaml [--study S] [--workers N]
                                      [--ray-address A] [--dry-run]
flex-orch [CONNECTION] cmd NAME [--study S] [--OPTION VALUE ...]
flex-orch [CONNECTION] commands
flex-orch [CONNECTION] export STUDY PATH [--parts ...] [--tags ...]
                                      [--compress] [--overwrite]
flex-orch [CONNECTION] import PATH [--name N] [--on-existing error|skip]
flex-orch [CONNECTION] verify [--study S ...] [--samples N] [--against FILE]
flex-orch [--data-dir D] acquirium start [--config TOML] [--port P]
flex-orch [--data-dir D] acquirium status | stop

CONNECTION picks the store as Orchestrator() does: --data-dir (local, the default .flexorch), --db with --data-dir (Postgres; the login comes from FLEXORCH_DB_* or libpq, never the command line), or --acquirium-url. --files DIR uses a folder on disk instead, with no Acquirium (FileBackend). --plugin NAME loads an installed plugin on top of those in FLEXORCH_PLUGINS.

cmd builds its options from the command’s params model: --field-name per field, numbers and strings as typed, lists as several values, booleans as --flag / --no-flag, and anything else as JSON. Every subcommand prints its result as JSON.

verify reports the store’s counts, tags and value hashes, and its problems (flexorchestrator.verify); save its output, and after a restore or a move, --against that file exits 1 on any difference. It also exits 1 when the store has a problem.

acquirium start runs a long-lived Acquirium on the data dir (or your own acquirium.toml with its drivers), which outlives every script; while it runs, everything that opens that data dir attaches to it (flexorchestrator.service). status and stop find it there.

Run flex-orch --help, or flex-orch SUBCOMMAND --help, for every option.