When to use
- Pause all workflows in an instance during maintenance or debugging
- Resume workflows after maintenance is complete
- Toggle between dev and prod environments (activating prod may auto-deactivate dev)
- Temporarily disable a workflow without undeploying it
Prerequisites
codikaCLI installed and authenticated- A deployed process instance (
devProcessInstanceIdorprodProcessInstanceIdinproject.json) - API key with
instances:managescope
Commands
Arguments
Options
Process instance ID resolution
The CLI resolves which process instance to target using this priority:- Positional argument
[processInstanceId](highest priority) project.jsonfield based on--environment:dev→devProcessInstanceIdprod→prodProcessInstanceId
Auto-toggle behavior
Environment auto-toggle. Activating a prod instance may automatically deactivate the corresponding dev instance for the same process, and vice versa. This prevents both environments from running simultaneously and consuming duplicate resources. The CLI reports when an auto-toggle occurs.
Examples
Output
Activate:--json):