When to use
- Change deployment parameters on a running instance (e.g., company name, language, timezone)
- Retry a failed deployment without creating a new template version
- Apply credential or configuration changes after publishing without bumping the version
This command does NOT upload local code changes. If you edited
config.ts or any file under workflows/, use codika deploy use-case instead. rerun deployment only re-runs the existing remote template with refreshed credentials and optional parameter overrides.Prerequisites
codikaCLI installed and authenticated- An existing deployment with
project.jsoncontainingdevProcessInstanceIdorprodProcessInstanceId - API key with
deploy:use-casescope
Command
Options
Process instance resolution
The CLI resolves which process instance to rerun using this priority:--process-instance-idflag (highest priority)project.jsonfield based on--environment:dev→devProcessInstanceIdprod→prodProcessInstanceId
Parameter input methods
You can provide parameters in three ways. When multiple methods are used, they are merged with this priority (highest wins):--param KEY=VALUEflags (repeatable, highest priority)--params '{"key": "value"}'JSON string--params-file ./params.jsonJSON file (lowest priority)
Parameters are merged, not replaced. The CLI sends only the parameters you provide. The platform merges them with the instance’s existing parameters. If the instance has
COMPANY_NAME=Acme and LANGUAGE=en, and you pass --param LANGUAGE=fr, the result is COMPANY_NAME=Acme and LANGUAGE=fr. Omitted parameters keep their current values.What happens on rerun
- Load the target process instance from the platform
- Load the deployment template currently associated with the instance
- Merge provided parameters with existing instance parameters
- Refresh workflows — re-run placeholder replacement with updated parameters and current credential state
- Deploy updated workflows to n8n in-place (preserving existing
n8nWorkflowIdso webhook URLs stay stable)
Force flag
Agent usage
When automating reruns, prefer--params with JSON and --json for structured output:
--param and provides machine-readable output.
Examples
Output
--json):