Skip to main content
Version: v5.6.1

opschain templates version unlock

templates

opschain templates version unlock <project>/<code> --version <v> [--ignore-in-use]

Unlocks a template version, making its pinned revision and metadata writable again. The server refuses the unlock while assets use the version — the lock is what guarantees them a frozen revision — unless --ignore-in-use overrides the refusal.

Flags​

FlagMeaning
--version <v>The version to unlock (required).
--ignore-in-useOverride the in-use refusal for versions that assets are pinned to.

Exit codes​

CodeMeaning
0Unlocked — prints unlocked version <v> of <project>/<code>.
1The template was not found, or the server refused (assets use the version and no override was passed).
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 unlock demo/web_stack --version 1.0.0 --ignore-in-use
unlocked version 1.0.0 of demo/web_stack

See also​

  • opschain docs cli/templates-version-lock — the counterpart.
  • opschain docs cli/templates-show — which assets use the version.