zentao-cli
禅道项目管理 CLI 工具,支持任务查询、创建、编辑、工时记录和 6R 报表生成。
可独立使用,也可作为 OpenClaw Skill 集成到 AI agent 中。
安装
pip install zentao-cli
或通过 pipx / uvx 一次性运行:
uvx zentao-cli list --status done
配置
首次使用,运行交互式配置:
zentao setup
按提示输入禅道地址、账号、密码、默认执行名称即可。配置保存在 ~/.config/zentao/config.json(权限 600)。
也可以通过环境变量配置(优先级高于配置文件,适合 CI/容器场景):
export ZENTAO_HOST="https://zentao.example.com"
export ZENTAO_ACCOUNT="your_account"
export ZENTAO_PASSWORD="your_password"
export ZENTAO_DEFAULT_EXECUTION_NAME="运维"
使用
# 查询任务
zentao list
zentao list --status done
zentao list --start-date 2026-03-01 --end-date 2026-03-31
zentao list --json
# 任务详情
zentao get 123
# 创建任务(自动完成)
zentao create \
--title "修复 Nginx 配置" \
--description "生产环境配置错误" \
--work-content "排查并修复 upstream 配置" \
--acceptance-criteria "服务正常转发"
# 编辑任务
zentao edit 123 --status done
zentao edit 123 --title "新标题" --assigned-to someone
# 删除任务
zentao delete 123
# 记录工时
zentao effort 123 --hours 2 --work "排查并修复配置"
# 生成 6R 报表
zentao report --start-date 2026-03-01 --end-date 2026-03-15
OpenClaw 集成
安装 CLI 并配置后,将 SKILL.md 复制到 OpenClaw skills 目录即可:
pip install zentao-cli
zentao setup
mkdir -p ~/.openclaw/skills/zentao-task-manager
cp SKILL.md ~/.openclaw/skills/zentao-task-manager/
重启 gateway 即可使用。无需在 openclaw.json 中配置环境变量,CLI 会自动读取 ~/.config/zentao/config.json。
License
MIT
Metadata
Release files for zentao-cli 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| zentao_cli-1.2.0.tar.gz | 14.5 kB | Without provenance | Details for zentao_cli-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| zentao_cli-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for zentao_cli-1.2.0-py3-none-any.whl |
Total release size: 25.2 kB
Release files / zentao_cli-1.2.0.tar.gz
| Download URL | zentao_cli-1.2.0.tar.gz |
|---|---|
| Size | 14.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c57e725b63e1fb8722771e6fd924fe41893ca7bffba6656b43031324910b3650
|
|
BLAKE2b-256 checksum How to use checksums |
ea653ed9fd32487f27f918d00e06b721c3e2584a0bc145675974b9eef34cc1c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.2
|
Release files / zentao_cli-1.2.0-py3-none-any.whl
| Download URL | zentao_cli-1.2.0-py3-none-any.whl |
|---|---|
| Size | 10.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
632e2d506390608406188f1e34a3607e934a2f46cde6b167eb1368e8f644a754
|
|
BLAKE2b-256 checksum How to use checksums |
2cea3f7350c6b1b37b53f71c4de2dca4ce835b760f20ef439b2628d52d3a9254
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.2
|
Security for zentao-cli 1.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.