name: agentuity-cli-cloud-ssh description: SSH进入云项目。需要身份验证。用于Agentuity云平台操作 version: “0.0.103” license: Apache-2.0 allowed-tools: “Bash(agentuity:*)” argument-hint: “[标识符] [命令]” metadata: command: “agentuity cloud ssh” tags: “只读 慢 需要认证 需要部署”
云SSH
SSH进入云项目
前提条件
- 已通过
agentuity auth login认证 - 云部署
使用方法
agentuity cloud ssh [标识符] [命令] [选项]
参数
| 参数 | 类型 | 必填 | 描述 |
|---|---|---|---|
<标识符> |
字符串 | 否 | - |
<命令> |
字符串 | 否 | - |
选项
| 选项 | 类型 | 必填 | 默认值 | 描述 |
|---|---|---|---|---|
--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