AgentSkillsCN

agentuity-cli-cloud-scp-upload

使用安全拷贝上传文件。需要身份验证。适用于 Agentuity 云平台运维。

SKILL.md
--- frontmatter
name: agentuity-cli-cloud-scp-upload
description: Upload a file using security copy. Requires authentication. Use for Agentuity cloud platform operations
version: "0.1.24"
license: Apache-2.0
allowed-tools: "Bash(agentuity:*)"
argument-hint: "<source> [destination]"
metadata:
  command: "agentuity cloud scp upload"
  tags: "mutating updates-resource slow requires-auth requires-deployment"

Cloud Scp Upload

Upload a file using security copy

Prerequisites

  • Authenticated with agentuity auth login
  • cloud deploy

Usage

bash
agentuity cloud scp upload <source> [destination] [options]

Arguments

ArgumentTypeRequiredDescription
<source>stringYes-
<destination>stringNo-

Options

OptionTypeRequiredDefaultDescription
--identifierstringYes-The project or deployment id to use

Examples

Upload to remote home directory:

bash
bunx @agentuity/cli cloud scp upload ./config.json

Upload to specific path:

bash
bunx @agentuity/cli cloud scp upload ./config.json /app/config.json

Upload to specific project:

bash
bunx @agentuity/cli cloud scp upload ./config.json --identifier=proj_abc123xyz

Upload multiple files:

bash
bunx @agentuity/cli cloud scp upload ./logs/*.log ~/logs/

Output

Returns JSON object:

json
{
  "success": "boolean",
  "source": "string",
  "destination": "string",
  "identifier": "string"
}
FieldTypeDescription
successbooleanWhether upload succeeded
sourcestringLocal source path
destinationstringRemote destination path
identifierstringProject or deployment identifier