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
| Flag | Meaning |
|---|---|
--version <v> | The version to unarchive (required). |
--ignore-in-use | Deprecated: 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
| Code | Meaning |
|---|---|
| 0 | Unarchived — prints unarchived version <v> of <project>/<code>. |
| 1 | The template was not found, or the server refused the write. |
| 2 | Usage 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.