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.

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-headstringExpected hosted head; skips the automatic head read.
--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

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