在 agent.yaml(或其委托的清单)中提升代理声明的版本。
Synopsis
提升当前目录或最近的包含 agent.yaml 的父目录中 agent.yaml 所声明的版本。
对于“1.2.0”这样的字面版本,bump 会直接编辑 代理.yaml。对于“version: auto”,它会改为编辑委托的清单:pyproject.toml [项目].version对于 Python,则为 package.json “version” (针对 Typescript)。当 agent.yaml 未声明版本时,该命令会报错。
编辑后的文件中的注释和格式得以保留。
agentengine agent bump-version <patch|minor|major> [flags]选项
-h, --help help for bump-version --json Output JSON从父命令继承的选项
--log-file string override log file path --log-level string file log verbosity (error|warn|info|debug) (default "info") --no-log disable file logging-q, --quiet silence stderr below error-v, --verbose count raise stderr verbosity (-v info, -vv debug)另请参阅
- agentengine 代理 - 检查、编辑和生成代理配置。