AgentSkillsCN

agentuity-cli-cloud-storage-download

从存储桶中下载文件。需要身份验证。适用于 Agentuity 云平台运维。

SKILL.md
--- frontmatter
name: agentuity-cli-cloud-storage-download
description: Download a file from storage bucket. Requires authentication. Use for Agentuity cloud platform operations
version: "0.1.24"
license: Apache-2.0
allowed-tools: "Bash(agentuity:*)"
argument-hint: "<name> <filename> [output]"
metadata:
  command: "agentuity cloud storage download"
  tags: "read-only requires-auth"

Cloud Storage Download

Download a file from storage bucket

Prerequisites

  • Authenticated with agentuity auth login

Usage

bash
agentuity cloud storage download <name> <filename> [output] [options]

Arguments

ArgumentTypeRequiredDescription
<name>stringYes-
<filename>stringYes-
<output>stringNo-

Options

OptionTypeRequiredDefaultDescription
--metadatabooleanYes-Download metadata only (not file contents)

Examples

Download file from bucket:

bash
bunx @agentuity/cli cloud storage download my-bucket file.txt

Download file to specific path:

bash
bunx @agentuity/cli cloud storage download my-bucket file.txt output.txt

Download file to stdout:

bash
bunx @agentuity/cli cloud storage download my-bucket file.txt - > output.txt

Download metadata only:

bash
bunx @agentuity/cli cloud storage download my-bucket file.txt --metadata

Output

Returns JSON object:

json
{
  "success": "boolean",
  "bucket": "string",
  "filename": "string",
  "size": "number",
  "contentType": "string",
  "lastModified": "string"
}
FieldTypeDescription
successbooleanWhether download succeeded
bucketstringBucket name
filenamestringDownloaded filename
sizenumberFile size in bytes
contentTypestringContent type
lastModifiedstringLast modified timestamp