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
--requiresOverride requires tags (can be repeated)
--no-requiresClear requires
--memo / --no-memoOverride memoisation
--delayOverride delay (seconds)
--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

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.

FlagDescription
--devDevelopment mode (implies --watch and --register)
--watchWatch for file changes and reload
--registerRegister modules with server
--concurrencyMax concurrent executions (default: CPU count + 4)
--providesFeatures worker provides (e.g., gpu:A100)
--acceptsTags executions must have
--adapterAdapter command
--sessionSession ID (for pool-launched workers)

coflux setup

Interactive configuration wizard. Creates coflux.toml.

FlagDescription
--hostServer host
--workspaceWorkspace 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)
--studio-urlStudio URL
--allow-originAllowed CORS origins

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.

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>View launched workers (--watch)
pools exportExport pool configs as TOML (-o, --only)
pools import <file>Import pool configs from TOML

Pool creation flags

FlagDescription
--typeLauncher type: kubernetes, docker, process (required)
--setSet a field (e.g., --set image=myapp:latest, --set env.KEY=VALUE)
--modulesModules to host
--providesFeatures workers provide
--acceptsTags executions must have

Pool update flags

FlagDescription
--setSet a field
--unsetUnset a field
--modulesModules to host
--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 assets

CommandDescription
assets inspect <id>List asset entries (--match to filter)
assets download <id>Download asset files (--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 (--no-watch for a snapshot).