Skip to main content
File commands use the authenticated identity and Registry workspace scope.

Commands

list

Lists visible file artifacts in one workspace or across the account. Usage

get

Gets the latest or a selected version of one file artifact. <id> is required. Usage
--version is an integer; omit it for the latest version.

versions

Lists every retained version for a file ID. Usage

upload

Uploads a local file as a new Registry file artifact. Usage

download

Downloads the latest or a selected version of a file artifact. Usage
Binary content is refused on an interactive terminal unless --output or a pipe is used. Downloads stop after 64 MiB.

delete

Archives a file artifact while retaining its versions. Usage
--confirm skips the prompt. Structured reads support --json, --jq, and --template. Valid artifact fields are artifact_status, created_at, description, id, is_latest, is_system, kind, metadata, name, source_digest, updated_at, version_ordinal, and workspace_id.

Examples

Output and behavior

  • Upload detects the media type from the extension when --media-type is omitted.
  • Duplicate stored paths in one workspace are rejected; choose another --as value.
  • A partial parent pair is rejected before upload.
  • delete is a soft delete: listings hide the file, but versions remain.
  • Empty list results exit with code 0.