agentuity-cli-cloud-storage-upload
Upload a file to storage bucket. Requires authentication. Use for Agentuity cloud platform operations
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
Cloud Storage Upload
Upload a file to storage bucket
Prerequisites
- Authenticated with
agentuity auth login
Usage
agentuity cloud storage upload <name> <filename> [options]
Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
<name> |
string | Yes | - |
<filename> |
string | Yes | - |
Options
| Option | Type | Required | Default | Description |
|---|---|---|---|---|
--key |
string | Yes | - | Remote object key (defaults to basename or "stdin" for piped uploads) |
--contentType |
string | Yes | - | Content type (auto-detected if not provided) |
Examples
Upload file to bucket:
bunx @agentuity/cli cloud storage upload my-bucket file.txt
Upload file with content type:
bunx @agentuity/cli cloud storage put my-bucket file.txt --content-type text/plain
Upload file with custom object key:
bunx @agentuity/cli cloud storage upload my-bucket file.txt --key custom-name.txt
Upload from stdin:
cat file.txt | bunx @agentuity/cli cloud storage upload my-bucket -
Upload from stdin with custom key:
cat data.json | bunx @agentuity/cli cloud storage upload my-bucket - --key data.json
Output
Returns JSON object:
{
"success": "boolean",
"bucket": "string",
"filename": "string",
"size": "number"
}
| Field | Type | Description |
|---|---|---|
success |
boolean | Whether upload succeeded |
bucket |
string | Bucket name |
filename |
string | Uploaded filename |
size |
number | File size in bytes |
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-01-26
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!