name: agentuity-cli-cloud-scp-download description: 使用安全复制下载文件。需要身份验证。用于Agentuity云平台操作 version: “0.0.103” license: Apache-2.0 allowed-tools: “Bash(agentuity:*)” argument-hint: “<源路径> [目标路径]” metadata: command: “agentuity cloud scp download” tags: “只读 慢速 需要认证 需要部署”
云安全复制下载
使用安全复制协议下载文件
前提条件
- 已通过
agentuity auth login完成身份验证 - 已部署云服务
使用方法
agentuity cloud scp download <源路径> [目标路径] [选项]
参数
| 参数 | 类型 | 是否必需 | 描述 |
|---|---|---|---|
<源路径> |
字符串 | 是 | - |
<目标路径> |
字符串 | 否 | - |
选项
| 选项 | 类型 | 是否必需 | 默认值 | 描述 |
|---|---|---|---|---|
--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": "布尔值",
"source": "字符串",
"destination": "字符串",
"identifier": "字符串"
}
| 字段 | 类型 | 描述 |
|---|---|---|
success |
布尔值 | 下载是否成功 |
source |
字符串 | 远程源路径 |
destination |
字符串 | 本地目标路径 |
identifier |
字符串 | 项目或部署标识符 |