opschain metadata profiles migrate
Included from Basic tier
opschain metadata profiles migrate <key>
Applies a profile's declared old→new value mappings to every stale value
(MetadataService.ApplyMetadataProfileMigration) as per-node audited
writes — migration is an explicit act, not a revision side effect. Stale values the profile declares no mapping for are left in
place and counted; they remain reportable posture defects. Needs the
metadata-writer determination at /; a migration that rewrites a
protective field requires a stepped-up session.
-o json / -o yaml emit the migrated/remaining counts.
Exit codes
| Code | Meaning |
|---|---|
| 0 | Migrated; the output reports migrated and stale remaining counts. |
| 1 | Refused — no metadata-writer determination, or an unelevated protective migration. |
| 2 | Usage error, including a missing server target. |