Skip to main content

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

  • codika CLI installed and authenticated
  • A deployed process instance (devProcessInstanceId or prodProcessInstanceId in project.json)
  • API key with instances:manage scope

Commands

Arguments

Options

Process instance ID resolution

The CLI resolves which process instance to target using this priority:
  1. Positional argument [processInstanceId] (highest priority)
  2. project.json field based on --environment:
    • devdevProcessInstanceId
    • prodprodProcessInstanceId
If neither is found, the command exits with an error.

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:
Deactivate:
With auto-toggle:
JSON output (--json):

Error reference

Exit codes