Skip to main content
Version: v5.6.1

opschain admin nodes restore

Included from Basic tier

opschain admin nodes restore <path>

Restores a soft-deleted node and its subtree — the full undo of opschain admin nodes delete. The subtree reappears in lists and routes, new work is accepted again and triggers under it resume. No preview and no confirmation flag: restore destroys nothing. It applies only to a soft-deleted node; once a node has been destroyed there is nothing left to restore (import the export archive instead).

No local flags. The path is the node's address as it was before the delete (the path stayed reserved).

Output​

opschain admin nodes restore demo/environments/dev
restored environment /projects/demo/environments/dev

-o json / -o yaml print the restored node object.

Exit codes​

CodeMeaning
0Restored.
1The server refused (not deleted, missing, authorisation).
2Usage error — malformed path, no server target.

Named errors​

  • expected a node path like demo, demo/environments/dev or /projects/demo/environments/dev/assets/web, got "…"
  • nodes operate on a server's estate — pass --server <url> or 'opschain context use <name>'

Both exit 2.

See also​

  • opschain docs cli/admin-nodes-delete — what restore undoes.
  • opschain docs cli/admin-nodes-import — recreate definitions after a destroy.