hosted:artifact:attach

Commit an artifact attachment from --metadata-file or the inline --name/--media-type/--notes/--tags flags.

Reference for flywheel hosted:artifact:attach.

Command Group

Hosted Repository

Summary

Commit an artifact attachment from --metadata-file or the inline --name/--media-type/--notes/--tags flags.

Effect

changes data

Usage

flywheel hosted:artifact:attach <FLAGS> <owner_kind> <owner_id>

Arguments

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

Required flags

FlagValueDefaultChoicesDescription
--repository-idstringHosted repository UUID.
--filestringArtifact byte path.

Optional flags

FlagValueDefaultChoicesDescription
--metadata-filestringArtifact metadata JSON file; must contain exactly name, media_type, notes, and tags — see --schema. Mutually exclusive with the inline flags below.
--namestringInline artifact name; defaults to the file's basename.
--media-typestringInline artifact media type; defaults to application/octet-stream.
--notesstringInline artifact notes; defaults to null.
--tagsstringInline comma-separated artifact tags; defaults to none.
--orderintegerPosition of this artifact among the target's artifacts. Defaults to one past the highest existing position.
--messagestringHosted commit message.
--expected-headstringHosted head this write expects, as head from flywheel hosted:repository:head &lt;repository_id&gt;. When set, the automatic head read is skipped; if the head has moved, the write is refused with repository_head_mismatch: read the head again and retry.
--formatFORMATjson, tsv, csv, tableOutput format for command results.
--envPROFILESelect a CLI profile; unconfigured default requires FLYWHEEL_BASE_URL.
--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.
--yesConfirm forced compute:release-all --force. Other runtime commands do not read --yes.
--debugPrint structured request debugging with secrets masked.
--verbosePrint verbose progress for long-running operations.
-h, --helpShow this help.

Examples

Attach a file with inline metadata flags; --name defaults to the file basename and --media-type to application/octet-stream.

flywheel hosted:artifact:attach --repository-id=<uuid> node <owner_id> --file report.pdf --media-type application/pdf

Output

Default format: human.

FieldType
commit_idstring
headstring
cursorstring
receipt_sequenceinteger
artifact_idstring
warnings (optional)array<string>