opschain workflows unarchive
Included from Basic tier
opschain workflows unarchive <project>/<code>
Unarchives a stored server workflow so new runs can use it again — the
exact reverse of workflows archive, over the same ordinary authorised
update endpoint (PATCH /api/projects/{project}/workflows/{code}).
On success it prints unarchived workflow <project>/<code> (-o json|yaml
prints the updated workflow document instead). Needs a server target
(--server <url>, OPSCHAIN_SERVER, or the active context).
Exit codes
| Code | Meaning |
|---|---|
| 0 | Workflow unarchived. |
| 1 | The command failed (workflow not found, server refused the update). |
| 2 | Usage error — malformed address, no server target. |
Named errors
expected <project>/<workflow-code>, got "<arg>"— exit 2.workflow "<code>" not found in project "<project>"— exit 1.
See also
opschain docs cli/workflows-archive.opschain docs cli/runs-create— running the workflow once it is live again.