Skip to main content
Version: v5.7.0

opschain templates version unarchive

templates

opschain templates version unarchive <project>/<code> --version <v>

Unarchives a template version, making it assignable to assets again. An archived version refuses every other write, so this is the only verb that takes it out of that state.

Flags​

FlagMeaning
--version <v>The version to unarchive (required).
--ignore-in-useDeprecated: unarchive has no in-use refusal to override. The flag is still accepted (a warning names unlock, archive and upsert as the verbs it applies to) but nothing is sent.

Exit codes​

CodeMeaning
0Unarchived — prints unarchived version <v> of <project>/<code>.
1The template was not found, or the server refused the write.
2Usage error — missing required flag, malformed address, no server target.

Named errors​

  • required flag(s) "version" not set — exit 2.
  • expected <project>/<template-code>, got "<arg>" — exit 2.
  • template "<code>" not found in project "<project>" — exit 1.

Example​

opschain templates version unarchive demo/web_stack --version 0.9.0
unarchived version 0.9.0 of demo/web_stack

See also​

  • opschain docs cli/templates-version-archive — the counterpart.
  • opschain docs cli/templates-assign — pin assets to it again.