Skip to main content
Version: v5.7.0

opschain metadata profiles create

Included from Basic tier

opschain metadata profiles create -f <profile.yaml>

Adopts a customer metadata profile from a YAML definition (MetadataService.CreateMetadataProfile). Customer field families must live under x-<org>.* — non-x- families are reserved for the base core vocabulary and pack-shipped bindings. Needs the metadata-writer determination at /.

The strict YAML vocabulary:

key: x-acme-ops
title: Acme operations vocabulary
description: ...
fields:
- key: x-acme.tier # <family>.<field>
type: enum # string|enum|bool|integer|duration|date|node_ref|external_ref
enum_values: [gold, silver]
applies_to: asset # project|environment|asset|any
inherit: none # none|subtree
protective: false
required: false
description: ...

-o json / -o yaml emit the created profile.

Flags​

FlagMeaning
-f, --file <path>The YAML profile definition (mandatory).

Exit codes​

CodeMeaning
0Created.
1Refused — no metadata-writer determination, a reserved key, or an invalid field spec (named by the server).
2Usage error — a missing/unparseable file, an unknown YAML key, or a missing server target.