CLI command

skarbiec set-json

Write one canonical item payload supplied on stdin instead of exposing field values in argv.

Invocation#

Shell
printf '%s' '<canonical-json-payload>' | skarbiec set-json <id> [--type <canonical-kind>] [--recipients <uid,...>] [--tags <tag,...>]

Purpose#

Write one canonical item payload supplied on stdin instead of exposing field values in argv.

Required inputs and options#

  • Requires an item id and one JSON payload on stdin with schema, kind, and fields. --type may select the validation kind; absent --recipients and --tags preserve existing metadata.

Output and state effects#

  • Validates, encrypts, and stores a new revision, then prints ok, id, and kind.

Refusals#

  • Refuses non-JSON or non-canonical payloads, the reserved managed:weles tag, a tag the write would introduce under no registered namespace, and direct writes to lifecycle-controlled or externally managed items.