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
| Flag | Meaning |
|---|---|
--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-only | Keep only stale values. |
--export csv | Export 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
| Code | Meaning |
|---|---|
| 0 | Listed or exported. |
| 1 | The read failed — the error names the server's Connect code and message. |
| 2 | Usage error — a non-csv --export, --out without --export, or a missing server target. |