Skip to main content

CLI reference

Global flags​

These flags are available on all commands:

FlagShortDefaultDescription
--hostlocalhost:7777Server host
--projectProject ID
--tokenAuthentication token
--team-tTeam ID (for Studio auth)
--workspace-wdefaultWorkspace name
--output-oOutput format (json)
--config-ccoflux.tomlConfiguration file path
--log-levelinfoLog level (debug, info, warn, error)

coflux submit​

Submit a workflow run.

coflux submit <module/target> [arguments...]

Arguments are passed as JSON strings.

FlagDescription
--no-waitSubmit and exit without waiting for completion
--idempotency-keyDeduplication key
--catalogRun as of a catalog version (path@n): every execution in the run sees the catalog as it was then. latest pins the run to the catalog as of submission
--requiresOverride requires tags (can be repeated)
--no-requiresClear requires
--memo / --no-memoOverride memoisation
--delayOverride delay, as a duration (e.g. 30s, 5m)
--retriesOverride retry limit (0 = no retries)
coflux submit myapp/process '"arg1"' '42'
coflux submit --no-wait myapp/long_job '"data"'
coflux submit --requires gpu:A100 --memo myapp/train '"config"'

coflux runs​

coflux runs inspect <run-id>​

Inspect a run (target, status, timestamps, step/execution counts).

FlagDescription
--no-waitReturn snapshot without waiting

coflux runs result <target>​

Get the result of a run, step, or execution.

Target format: <run-id>, <run-id>:<step>, or <run-id>:<step>:<attempt>.

coflux runs rerun <step-id>​

Re-run a step. Step ID format: <run-id>:<step>.

FlagDescription
--no-waitRe-run and exit without waiting
--catalogThe catalog snapshot for the new attempt: a version (path@n) or latest. By default it sees what the previous attempt saw

coflux runs cancel <execution-id>​

Cancel an execution and all its descendants.

coflux logs​

coflux logs <run-id> [<run-id>:<step>:<attempt>]

Fetch logs for a run or specific execution.

FlagShortDescription
--follow-fStream logs in real-time
--fromOnly include logs after this timestamp (unix ms)

coflux worker​

coflux worker [modules...]

Start a worker. Modules can be given as arguments or as worker.modules in coflux.toml; a package is scanned recursively. With neither, every module in the working directory is hosted.

FlagDescription
--devDevelopment mode (implies --watch and --register)
--all-modulesHost every module in the working directory, even if coflux.toml sets worker.modules
--watchWatch for file changes and reload
--registerRegister modules with server
--concurrencyMax concurrent executions (default: CPU count + 4, max 32)
--providesFeatures worker provides (e.g., gpu:A100)
--acceptsTags executions must have
--adapterAdapter command
--sessionSession ID (for pool-launched workers)
--drain-timeoutHow long to wait for in-flight executions to finish on shutdown or reload (default: 2m; 0 = wait indefinitely)

On SIGINT/SIGTERM the worker stops accepting new executions and drains the in-flight ones (up to --drain-timeout). Sending the signal a second time aborts the drain early; a third time forces an immediate exit. The same drain runs between reloads in --watch / --dev mode.

coflux setup​

Interactive configuration wizard. Creates coflux.toml.

FlagShortDescription
--host-HServer host
--workspace-wWorkspace name
--adapterAdapter command
--detectAuto-detect adapter

coflux server​

Start a local server using Docker.

FlagShortDefaultDescription
--port-p7777Server port
--data-dir-d./dataData directory
--imageDocker image
--projectSingle-project mode
--public-hostPublic host (use % prefix for subdomain routing)
--no-authDisable authentication
--super-tokenSuper token
--super-token-hashPre-hashed super token (SHA-256 hex)
--secretServer secret for signing service tokens
--teamAllowed team IDs for Studio auth
--launcherAllowed launcher types (docker, process, kubernetes, ecs)

coflux login / coflux logout​

Authenticate with Coflux Studio using a device authorization flow.

FlagDescription
--no-browserDon't open browser automatically (login only)

coflux workspaces​

CommandDescription
workspaces listList workspaces
workspaces create <name>Create a workspace (--base for inheritance)
workspaces updateUpdate workspace (--name, --base, --no-base)
workspaces pausePause a workspace
workspaces resumeResume a paused workspace
workspaces archiveArchive a workspace

coflux manifests​

CommandDescription
manifests discover [modules...]Discover targets without registering
manifests register [modules...]Register targets with the server
manifests archive <module>Archive a module
manifests inspectList registered modules and targets (--watch)

All manifest commands accept --adapter to specify the adapter command. discover and register resolve modules the way coflux worker does, and take --all-modules.

coflux pools​

CommandDescription
pools listList pools
pools get <name>Get pool configuration
pools create <name>Create a pool
pools update <name>Update a pool
pools delete <name>Delete a pool
pools disable <name>Disable a pool (drain workers)
pools enable <name>Re-enable a pool
pools launches <pool> [worker-id]View launched workers (--watch)
pools exportExport pool configs as TOML (-o, --only)
pools import [file]Import pool configs from TOML or stdin. Declarative: pools absent from the file are deleted. Flags: --dry-run, --yes, --only

Pool creation flags​

FlagDescription
--typeLauncher type: kubernetes, docker, process, ecs (required)
--setSet a field (e.g., --set image=myapp:latest, --set env.KEY=VALUE)
--modules, -mModules to host, comma-separated; a name covers its submodules. Unset: all
--providesFeatures workers provide
--acceptsTags executions must have

Pool update flags​

FlagDescription
--setSet a field
--unsetUnset a field
--modules, -mModules to host, comma-separated; a name covers its submodules. --unset modules for all
--provides / --no-providesSet or clear provides
--accepts / --no-acceptsSet or clear accepts

See pools for launcher-specific fields.

coflux tokens​

CommandDescription
tokens listList service tokens
tokens createCreate a token (--name, --workspaces)
tokens revoke <id>Revoke a token

coflux secrets​

CommandDescription
secrets set <name>Set a secret's value from stdin (--workspaces, --from-env, --from-file)
secrets listList secrets (names, scopes and versions)
secrets delete <name>Delete a secret (--workspaces)

coflux inputs​

CommandDescription
inputs listList pending inputs (--run to filter by run ID)
inputs inspect <input-id>Show a prompt's template, schema, and current state
inputs respond <input-id> <value>Submit a response (value as JSON)
inputs dismiss <input-id>Dismiss a prompt

See inputs for the workflow side of the API.

coflux assets​

CommandDescription
assets inspect <id>List asset entries (--match to filter)
assets download <id>Download asset files (--to, --match, --force)

coflux catalog​

CommandDescription
catalog list [prefix]Paths and their latest versions, optionally under a prefix
catalog inspect <path>The versions at a path, newest first (--limit, default 20, at most 500)
catalog get <path>[@<number>]Print the value at a path, or of a specific version
catalog publish <path> <json>Publish a JSON value at a path
catalog publish <path> --asset <asset-id>Publish an existing asset at a path
catalog download <path>[@<number>]Download the assets held by the value at a path; several restore into subdirectories by key (--to, --match, --force)

coflux blobs​

coflux blobs get <key>​

Retrieve a blob by key. Use -o to write to a file (default: stdout).

coflux sessions​

coflux sessions list​

List active sessions (--watch to watch for changes).

coflux queue​

Show the execution queue. The dependencies column lists what each queued or suspended execution is waiting on: other executions, inputs, or stream items. Use --no-watch for a snapshot, and -o json to dump the raw topic.