When to use
- See all deployed process instances across an organization at a glance
- Check instance status across environments (dev and prod)
- Audit what is currently running in an organization
- Find an instance ID to pass to
get instanceorinstance activate/deactivate
Prerequisites
codikaCLI installed and authenticated- API key with
instances:readscope
Command
Options
| Option | Description | Default |
|---|---|---|
--environment <env> | Filter by environment (dev or prod) | All environments |
--archived | Include archived instances | Off |
--limit <n> | Number of instances to return | 50 |
--api-url <url> | Override API URL | — |
--api-key <key> | Override API key | — |
--profile <name> | Use a specific profile instead of the active one | — |
--json | JSON output | — |
Behavior
- Fetches all process instances for the authenticated organization
- Returns lightweight summaries with status, environment, and version info
- Sorted by last execution time, most recent first
Examples
Output
— in the Last Executed column.
Note: Zero instances is not an error — the CLI prints “No instances found.” and exits with code 0.
Error reference
| HTTP | Error | Fix |
|---|---|---|
| 401 | Invalid API key | Re-login with codika login |
| 403 | Missing scope | Create key with instances:read scope |
| 403 | No access | Organization mismatch — check active profile |
Exit codes
| Code | Meaning |
|---|---|
0 | Success |
1 | API error |