Skip to main content
Version: v5.6.1

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​

CodeMeaning
0Migrated; the output reports migrated and stale remaining counts.
1Refused — no metadata-writer determination, or an unelevated protective migration.
2Usage error, including a missing server target.