Skip to content
Documentation

cordumctl

The CLI wraps the gateway and local Docker Compose workflows. It can scaffold projects, generate TLS certificates, start the stack, submit jobs, manage workflows and packs, and administer pools.

Global flags

FlagEnvDefaultDescription
--gatewayCORDUM_GATEWAYhttp://localhost:8081Gateway base URL.
--api-keyCORDUM_API_KEYAPI key for authenticated calls.
--tenantCORDUM_TENANT_IDdefaultTenant header value.
--cacertCORDUM_TLS_CACA certificate for HTTPS verification.
--insecureCORDUM_TLS_INSECUREfalseSkip TLS verification for local debugging only.
TLS-enabled local stack
cordumctl status   --gateway https://localhost:8081   --cacert ./certs/ca/ca.crt   --api-key "$CORDUM_API_KEY"   --tenant default

Setup and stack management

CommandDescription
cordumctl init <dir>Scaffold a new Cordum project.
cordumctl generate-certsGenerate the local CA, server, and client certificates.
cordumctl upStart the Docker Compose stack in detached mode.
cordumctl devStart the stack in foreground development mode.
cordumctl statusCall the gateway status endpoint and print the result.

Jobs, workflows, and runs

CommandDescription
cordumctl workflow create --file workflow.jsonCreate a workflow definition.
cordumctl workflow delete <workflow_id>Delete a workflow.
cordumctl run start <workflow_id>Start a run with optional --input and --dry-run.
cordumctl run get <run_id>Read workflow-run details.
cordumctl run delete <run_id>Delete a workflow run.
cordumctl run timeline <run_id>Print the append-only run timeline.
CommandDescription
cordumctl job submit --topic job.example --prompt "hello"Submit a job.
cordumctl job status <job_id>Read job state or full JSON with --json.
cordumctl job logs <job_id>Read the stored result or error payload.
cordumctl approval job <job_id> (--approve|--reject)Resolve an approval-held job.
cordumctl dlq retry <job_id>Retry a DLQ job.
Examples
cordumctl workflow create --file workflows/hello.json
cordumctl run start workflow-123 --input '{"message":"hello"}'
cordumctl run timeline run-123
cordumctl job submit --topic job.hello-pack.echo --input '{"message":"hello"}'

Packs and pools

CommandDescription
cordumctl pack create <pack_id>Scaffold a new pack directory.
cordumctl pack install <path|url>Install a pack, with optional --upgrade, --inactive, or --dry-run.
cordumctl pack uninstall <pack_id>Disable a pack; use --purge to remove installed workflows and schemas.
cordumctl pack listList installed packs.
cordumctl pack show <pack_id>Show details for a pack.
cordumctl pack verify <pack_id>Run pack policy simulation tests.
CommandDescription
cordumctl pool listList all pools.
cordumctl pool get <name>Read pool details.
cordumctl pool create <name>Create a pool.
cordumctl pool update <name>Update pool configuration.
cordumctl pool delete <name>Delete a pool.
cordumctl pool drain <name>Drain a pool.
cordumctl pool topic add <pool> <topic>Map a topic to a pool.
cordumctl pool topic remove <pool> <topic>Remove a topic mapping.