Safety
Three guards keep an agent, a script or a tired human from changing more than intended. The core guide (operate guide) has the same rules in short form.
--dry-runprints the request without sending it. It works in read-only mode too.--yes: commands with effectdelete(delete a resource, resolve an incident) orbulk(batches, query based updates, all versions of a key) refuse to run without it:
text
$ operate process-instance delete abc
{"error":{"code":"CONFIRMATION_REQUIRED","exitCode":2,"message":"`operate process-instance delete` is a delete operation and needs confirmation","hint":"Re-run with --yes to confirm, or --dry-run to preview."}}- Read-only mode:
--read-only,OPERATE_READ_ONLY=1or a profile created with--read-onlyrefuse every command whose effect is notread(exit 2,READ_ONLY). Use read-only profiles for production engines:
sh
operate config set prod --url https://camunda.example.com/engine-rest --read-only
operate process-instance list --profile prod --with-incidentoperate commands --effect deleteandoperate commands --effect bulklist the guarded commands.operate apinormalizes the path before it checks the effect and sends the request (/process-instance/./delete/is/process-instance/delete, a bulk operation that needs--yes); paths with#or;are refused.