repo:artifact:attach
Stage an artifact attachment from --metadata-file or the inline --name/--media-type/--notes/--tags flags.
Reference for flywheel repo:artifact:attach.
Command Group
Local Repository
Summary
Stage an artifact attachment from --metadata-file or the inline --name/--media-type/--notes/--tags flags.
Usage
flywheel repo:artifact:attach <FLAGS> <owner_kind> <owner_id>Arguments
| Argument | Required | Choices | Description |
|---|---|---|---|
<owner_kind> | Yes | node, edge | Artifact owner kind. |
<owner_id> | Yes | Artifact owner UUID. |
Required flags
| Flag | Value | Default | Choices | Description |
|---|---|---|---|---|
--file | string | Artifact byte path. |
Optional flags
| Flag | Value | Default | Choices | Description |
|---|---|---|---|---|
--repo | string | Local repository filesystem path. | ||
--personal | Use the configured personal repository. | |||
--metadata-file | string | Artifact metadata JSON file; must contain exactly name, media_type, notes, and tags — see --schema. Mutually exclusive with the inline flags below. | ||
--name | string | Inline artifact name; defaults to the file's basename. | ||
--media-type | string | Inline artifact media type; defaults to application/octet-stream. | ||
--notes | string | Inline artifact notes; defaults to null. | ||
--tags | string | Inline comma-separated artifact tags; defaults to none. | ||
--order | integer | Position of this artifact among the target's artifacts. Defaults to one past the highest existing position. | ||
--schema | Print the artifact metadata schema and example. | |||
--format | FORMAT | json, tsv, csv, table | Output format for command results. | |
--env | PROFILE | Use a configured CLI profile for this invocation. | ||
--out | PATH | Write output to a file path, or use - for stdout. | ||
--open | Open browser-bound URLs when supported. | |||
--no-retry | Disable transient-error retries. | |||
--retry-max | N | Maximum transient-error retry attempts. | ||
--wait | Block on async operations until a terminal state is reached. | |||
--wait-timeout | SECONDS | 600 | Seconds to wait for --wait before timing out. Defaults to 600. | |
--allow-self | Allow mutating the currently active credential. | |||
--timeout | SECONDS | Set the per-request timeout budget in seconds. | ||
--idempotency-key | KEY | Reuse an Idempotency-Key so ambiguous write failures can be retried with the same key. | ||
--force | Force safety-gated operations where supported. | |||
--yes | Skip confirmation prompts for destructive operations. | |||
--debug | Print structured request debugging with secrets masked. | |||
--verbose | Print verbose progress for long-running operations. | |||
-h, --help | Show this help. |
Examples
Attach a file with inline metadata flags; --name defaults to the file basename and --media-type to application/octet-stream.
flywheel repo:artifact:attach node <owner_id> --repo <path> --file report.pdf --media-type application/pdfAttach a file using a metadata JSON file with exactly name, media_type, notes, and tags.
flywheel repo:artifact:attach node <owner_id> --repo <path> --file report.pdf --metadata-file metadata.jsonPrint the complete machine-readable metadata contract and a valid example.
flywheel repo:artifact:attach --schema --format=json