Skip to main content
Version: v5.6.1

opschain metadata register

Included from Basic tier

opschain metadata register [--profile <key>] [--field <key>] [--value <text>] [--stale-only] [--export csv [--out <file>]]

Reads the classification register (MetadataService.ListMetadataRegister): node × field value rows with staleness, read-authz filtered per row, plus the unclassified-coverage counts printed as a trailing coverage: N of M node(s) classified line. --export csv (MetadataService.ExportMetadataRegister) renders the same filtered rows as a CSV document — the CPS 234-shaped asset-register evidence lane — to stdout, or to --out <file>.

-o json / -o yaml emit the typed rows and coverage.

Flags​

FlagMeaning
--profile <key>Keep only values from this profile.
--field <key>Keep only this field's values.
--value <text>Keep only values whose canonical text form matches (bool: true/false; integer and duration: decimal text).
--stale-onlyKeep only stale values.
--export csvExport the filtered register as CSV instead of listing it.
--out <file>Write the export to this file instead of stdout.
--filter <column>[!]=<value>Keep only listed rows matching the term (repeatable; terms AND; table mode). Grammar: opschain docs cli.

Exit codes​

CodeMeaning
0Listed or exported.
1The read failed — the error names the server's Connect code and message.
2Usage error — a non-csv --export, --out without --export, or a missing server target.