Agentuity云平台安全文件上传工具Skill agentuity-cli-cloud-scp-upload

Agentuity云平台安全文件上传工具是一款专为Agentuity云平台设计的命令行工具,通过SCP(安全复制协议)实现本地文件到远程服务器的安全传输。该工具支持单文件和多文件上传、指定目标路径、项目标识符验证等功能,适用于云部署环境中的配置文件、日志文件等数据传输场景。关键词:Agentuity云平台、SCP文件上传、命令行工具、云部署、安全传输、DevOps自动化。

CI/CD 0 次安装 0 次浏览 更新于 2/28/2026

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": "布尔值",
  "source": "字符串",
  "destination": "字符串",
  "identifier": "字符串"
}
字段 类型 描述
success 布尔值 上传是否成功
source 字符串 本地源文件路径
destination 字符串 远程目标路径
identifier 字符串 项目或部署标识符