About eliteforge-poseidon-cli
An operational skill for using the EliteForge Poseidon CLI to manage application metadata, builds, deployments, and runtime logs. It checks dependencies and credentials, updates the CLI before use, and relies on command help to guide execution.
Key features
- 01Dependency and credential checks
- 02CLI installation and upgrade
- 03Metadata and build commands
- 04Deployment and runtime log operations
- 05Atomic rebuild and deployment
Use cases
- 01Inspecting application metadata
- 02Building and deploying an application
- 03Finding runtime errors with log context
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ cloudsen/ eliteforge-skills --skill eliteforge-poseidon-cliAfter installing, type/eliteforge-poseidon-cliin Claude Code to confirm it loaded.
Bundled filesagents/openai.yaml
Details
From the project READMEEliteForge Poseidon CLI
依赖准备
以下工具不存在,先尝试自动安装:
- python3
- pipx
- jq 上下文或环境变量中的内部变量缺失,终止运行,提示用户补全相关变量。
工作流
- 先确认依赖和变量可用。
- 每次使用前都检查
eliteforge-poseidon-cli是否已安装。- 未安装时执行:
pipx install eliteforge-poseidon-cli
- 未安装时执行:
- 每次使用前都执行:
pipx upgrade eliteforge-poseidon-cli - 先看帮助再执行具体命令,避免硬编码能力说明。
- 所有子命令说明
poseidon -h - 元数据板块:应用与配置元数据管理:
poseidon metadata -h- 注意:创建应用时,依赖gitlab仓库,可使用
$gitlab-cli-skills先在赛迪GitLab平台上创建好项目仓库
- 注意:创建应用时,依赖gitlab仓库,可使用
- 构建板块:触发构建、查询构建记录与上下文
poseidon build -h - 运维板块:发布、日志检索与重启
poseidon ops -h - 原子命令:
poseidon atomic -h- 构建并发布指定应用:poseidon atomic rebuild-and-deploy 按应用名/ID触发构建并轮询到构建完成,并检测实例是否启动完毕,默认自动部署到开发环境
- 查看应用实例的错误日志:poseidon atomic runtime-errors 按应用名检索运行时错误日志,并逐条抓取命中时间点的上下文
- 所有子命令说明
- 按用户目标执行命令,可编写脚本自行编排接口.
Environment Variables
ELITEFORGE_SKILL_POSEIDON_BASE_URL[optional] Platform URL; defaults tohttps://poseidon.cisdigital.cn/.ELITEFORGE_SKILL_POSEIDON_USERNAME[required] Platform username for account authentication.ELITEFORGE_SKILL_POSEIDON_PASSWD[required] Platform password for account authentication.ELITEFORGE_SKILL_POSEIDON_AUTH_TYPE[optional] Authentication mode; supportsACCOUNT,API_TOKEN, orBEARER, and defaults toACCOUNT.ELITEFORGE_SKILL_POSEIDON_PRODUCT_ID[optional] Product ID; specific commands may override it with command parameters.ELITEFORGE_SKILL_POSEIDON_PROJECT_ID[optional] Project ID; specific commands may override it with command parameters.ELITEFORGE_SKILL_POSEIDON_AUTH_APP_ID[conditional] Required whenELITEFORGE_SKILL_POSEIDON_AUTH_TYPE=API_TOKEN.ELITEFORGE_SKILL_POSEIDON_AUTH_APP_SECRET[conditional] Required whenELITEFORGE_SKILL_POSEIDON_AUTH_TYPE=API_TOKEN.ELITEFORGE_SKILL_POSEIDON_TOKEN[conditional] Required whenELITEFORGE_SKILL_POSEIDON_AUTH_TYPE=BEARER.
Output Rules
- 输出保持简洁,必要时可配合
jq等Linux管道工具,处理接口JSON响应。 - 失败时返回实际执行的命令和关键报错
- 需要更多命令说明时,继续引导查看对应
-h
Comments
Markdown supported