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