name: agentuity-cli-cloud-scp-upload description: 使用安全复制上传文件。需要身份验证。用于Agentuity云平台操作 version: “0.0.103” license: Apache-2.0 allowed-tools: “Bash(agentuity:*)” argument-hint: “<源路径> [目标路径]” metadata: command: “agentuity cloud scp upload” tags: “mutating updates-resource slow requires-auth requires-deployment”
云安全复制上传
使用安全复制上传文件
先决条件
- 已通过
agentuity auth login完成身份验证 - 已部署云服务
用法
agentuity cloud scp upload <源路径> [目标路径] [选项]
参数
| 参数 | 类型 | 是否必需 | 描述 |
|---|---|---|---|
<源路径> |
字符串 | 是 | - |
<目标路径> |
字符串 | 否 | - |
选项
| 选项 | 类型 | 是否必需 | 默认值 | 描述 |
|---|---|---|---|---|
--identifier |
字符串 | 是 | - | 要使用的项目或部署ID |
示例
上传到远程主目录:
bunx @agentuity/cli cloud scp upload ./config.json
上传到指定路径:
bunx @agentuity/cli cloud scp upload ./config.json /app/config.json
上传到指定项目:
bunx @agentuity/cli cloud scp upload ./config.json --identifier=proj_abc123xyz
上传多个文件:
bunx @agentuity/cli cloud scp upload ./logs/*.log ~/logs/
输出
返回JSON对象:
{
"success": "boolean",
"source": "string",
"destination": "string",
"identifier": "string"
}
| 字段 | 类型 | 描述 |
|---|---|---|
success |
布尔值 | 上传是否成功 |
source |
字符串 | 本地源路径 |
destination |
字符串 | 远程目标路径 |
identifier |
字符串 | 项目或部署标识符 |