When to use
- Check what deployment parameters (INSTPARM values) are set on a live instance
- Verify the deployment status and version of an instance
- See which workflows are deployed and their n8n workflow IDs
- Confirm an instance is active before triggering workflows
Prerequisites
codikaCLI installed and authenticated- A deployed process instance (via
deploy use-caseor the dashboard) - API key with
instances:readscope
Typical workflow
Command
Arguments
| Argument | Description |
|---|---|
[processInstanceId] | Process instance ID (optional — auto-resolved from project.json) |
Options
| Option | Description | Default |
|---|---|---|
--path <path> | Path to use case folder with project.json | Current directory |
--project-file <path> | Path to custom project file (e.g., project-client-a.json) | project.json |
--environment <env> | Environment: dev or prod | dev |
--workflows | Show expanded workflow details (triggers, activation status, cost) | — |
--api-url <url> | Override API URL | — |
--api-key <key> | Override API key | — |
--profile <name> | Use a specific profile instead of the active one | — |
--json | Output as JSON | — |
Process instance ID resolution
The instance ID is resolved in this order:- Positional argument (explicit ID)
project.jsonin--pathdirectory — usesdevProcessInstanceIdorprodProcessInstanceIdbased on--environmentproject.jsonin current directory — same environment-aware selection
--environment prod to target the production instance from project.json.
Examples
Output
Human-readable (default)
With --workflows flag
JSON output with --workflows (--json)
--workflows, each workflow only contains workflowId, n8nWorkflowId, and workflowName (backward compatible).
JSON output (--json)
Status values
| Status | Meaning |
|---|---|
deployed (active) | Workflows are deployed and active |
deployed (paused) | Workflows are deployed but paused |
deploying | Deployment is in progress |
pending | Awaiting first deployment |
failed | Deployment failed |
archived | Instance has been archived |
Exit codes
| Code | Meaning |
|---|---|
0 | Success |
1 | API error or instance not found |
2 | CLI validation error (missing instance ID, missing API key) |