repo:artifact:set-metadata

Stage a replacement for exactly one artifact metadata field from --metadata-file or one inline flag.

Reference for flywheel repo:artifact:set-metadata.

Command Group

Local Repository

Summary

Stage a replacement for exactly one artifact metadata field from --metadata-file or one inline flag.

Usage

flywheel repo:artifact:set-metadata [FLAGS] <ARGS>…

Arguments

ArgumentRequiredChoicesDescription
<owner_kind>Yesnode, edgeArtifact owner kind.
<owner_id>YesArtifact owner UUID.
<artifact_id>YesArtifact UUID.

Required flags

None.

Optional flags

FlagValueDefaultChoicesDescription
--repostringLocal repository filesystem path.
--personalUse the configured personal repository.
--metadata-filestringArtifact metadata JSON file containing exactly one of name, media_type, notes, or tags — see --schema. Mutually exclusive with the inline flags below.
--namestringInline replacement artifact name; use alone, without the other metadata flags.
--media-typestringInline replacement artifact media type; use alone, without the other metadata flags.
--notesstringInline replacement artifact notes; use alone, without the other metadata flags.
--tagsstringInline replacement comma-separated artifact tags; use alone, without the other metadata flags.
--schemaPrint the artifact metadata schema and example.
--formatFORMATjson, tsv, csv, tableOutput format for command results.
--envPROFILEUse a configured CLI profile for this invocation.
--outPATHWrite output to a file path, or use - for stdout.
--openOpen browser-bound URLs when supported.
--no-retryDisable transient-error retries.
--retry-maxNMaximum transient-error retry attempts.
--waitBlock on async operations until a terminal state is reached.
--wait-timeoutSECONDS600Seconds to wait for --wait before timing out. Defaults to 600.
--allow-selfAllow mutating the currently active credential.
--timeoutSECONDSSet the per-request timeout budget in seconds.
--idempotency-keyKEYReuse an Idempotency-Key so ambiguous write failures can be retried with the same key.
--forceForce safety-gated operations where supported.
--yesSkip confirmation prompts for destructive operations.
--debugPrint structured request debugging with secrets masked.
--verbosePrint verbose progress for long-running operations.
-h, --helpShow this help.

Examples

Replace the artifact's notes using an inline flag.

flywheel repo:artifact:set-metadata node <owner_id> <artifact_id> --repo <path> --notes revised

Replace one field using a single-field metadata JSON file.

flywheel repo:artifact:set-metadata node <owner_id> <artifact_id> --repo <path> --metadata-file metadata.json

Print the complete machine-readable single-field contract and a valid example.

flywheel repo:artifact:set-metadata --schema --format=json