opschain admin packs pin
Included from Basic tier
Marks one installed version as the pack's unversioned resolution
target: a packs.yaml declaration that names the pack without a
version: seals this version the next time a template version
resolves. Template versions that already resolved keep the exact
version they sealed — pinning steers future resolutions only, which is
what makes it the rollback lever: pin the prior version and re-resolve.
--clear removes the pin, restoring the default — unversioned
declarations resolve the highest installed semantic version.
opschain admin packs pin opschain-pack-infrastructure 1.2.2
Pinned opschain-pack-infrastructure to version 1.2.2
opschain admin packs pin opschain-pack-infrastructure --clear
Cleared the pin on opschain-pack-infrastructure — unversioned declarations resolve the highest installed version again
-o, --output json|yaml emits the pinned version row (or
{"name": "...", "pinned": false} for --clear).
Flags
| Flag | Meaning |
|---|---|
--clear | Clear the pack's pin instead of setting one. |
--server <url> | Server base URL (default: the active context / OPSCHAIN_SERVER). |
--auth-token <token> | Admin bearer token override (default: your opschain login session, then $OPSCHAIN_ADMIN_TOKEN, then the token stored by opschain admin login). |
See also
opschain docs cli/admin-packs— the family overview and resolution rules.