General-Specialist/capalent-cli

GitHub: General-Specialist/capalent-cli

Capalent 竞争性事件响应平台的命令行客户端,通过 SSH 连接故障虚拟机进行生产问题排查训练并参与排行榜竞技。

Stars: 1 | Forks: 0

# Capalent CLI [Capalent](https://capalent.com) 竞争性 incident-response 平台的命令行界面。通过 SSH 连接到故障 VM,修复生产问题,并登上排行榜。 ## 安装 **macOS / Linux:** ``` curl -fsSL https://raw.githubusercontent.com/General-Specialist/capalent-cli/main/install.sh | sh ``` **Windows (PowerShell):** ``` irm https://raw.githubusercontent.com/General-Specialist/capalent-cli/main/install.ps1 | iex ``` ## 快速开始 ``` capalent login # Log in with GitHub capalent play nginx-502 # Provisions a VM, opens your IDE capalent submit # Submit your fix ``` ## 命令 | Command | Description | |---|---| | `play` | 选择一个问题并开始会话(配置 VM,设置 SSH,启动 IDE) | | `submit` | 提交你的解决方案以供评估 | | `status` | 显示你的活动会话 | | `abandon` | 放弃当前会话 | | `profile` | 显示你的评分和统计信息 | | `leaderboard` | 显示前 25 名玩家 | | `login` | 通过 GitHub OAuth 进行身份验证 | | `logout` | 清除已存储的凭证 | 所有命令均支持 `--json` 以获取机器可读的输出。 ## IDE 支持 CLI 会自动检测 [Cursor](https://cursor.sh) 和 VS Code。它会启动这些程序,并加载指向该 VM 的 Remote SSH 扩展。如需覆盖: ``` export CAPALENT_IDE=cursor # or "code" capalent play nginx-502 --no-ide # skip IDE, just print SSH info ``` ## 配置 凭证和 SSH 密钥存储在 `~/.config/capalent/` 中。 | Variable | Description | |---|---| | `CAPALENT_API_URL` | 覆盖 backend URL | | `CAPALENT_IDE` | 强制使用特定的 IDE(`cursor`、`code`) | ## 许可证 MIT
标签:AI合规, CLI, Cursor, Cutter, EVTX分析, Nginx, SSH, TGT, VS Code, WiFi技术, 事故响应, 内存分配, 在线竞赛, 开源, 技术培训, 排行榜, 攻防演练, 故障排查, 模拟环境, 生成式AI安全, 网络安全, 网络调试, 自动化, 虚拟机, 运维, 远程访问, 隐私保护