name: agentuity-cli-cloud-ssh description: 通过SSH连接到云端项目。需要身份验证。用于Agentuity云平台操作 version: “0.0.103” license: Apache-2.0 allowed-tools: “Bash(agentuity:*)” argument-hint: “[identifier] [command]” metadata: command: “agentuity cloud ssh” tags: “read-only slow requires-auth requires-deployment”
云端SSH
通过SSH连接到云端项目
前提条件
- 已通过
agentuity auth login完成身份验证 - 已部署云端项目
使用方法
agentuity cloud ssh [identifier] [command] [options]
参数
| 参数 | 类型 | 是否必需 | 描述 |
|---|---|---|---|
<identifier> |
字符串 | 否 | - |
<command> |
字符串 | 否 | - |
选项
| 选项 | 类型 | 是否必需 | 默认值 | 描述 |
|---|---|---|---|---|
--show |
布尔值 | 是 | - | 显示命令但不执行 |
示例
SSH连接到当前项目:
bunx @agentuity/cli cloud ssh
SSH连接到特定项目:
bunx @agentuity/cli cloud ssh proj_abc123xyz
SSH连接到特定部署:
bunx @agentuity/cli cloud ssh deploy_abc123xyz
执行命令后退出:
bunx @agentuity/cli cloud ssh 'ps aux'
在特定项目上执行命令:
bunx @agentuity/cli cloud ssh proj_abc123xyz 'tail -f /var/log/app.log'
显示SSH命令但不执行:
bunx @agentuity/cli cloud ssh --show