Loading...
Loading...
Manages Dify via bundled CLI: pull/export DSL, patch working.yml, deploy, cache remote files, upload to Dify, run/chat workflows. Use when the user mentions Dify, workflow DSL, pull, deploy, dify-manage, or Dify file inputs.
npx skill4agent add young-tim/ai-tools dify-manageSKILL.md~/.cursor/skills/dify-manage/# 基命令(后续子命令均接在此后)
python3 "{SKILL_ROOT}/scripts/dify_manage.py" <子命令> [选项]
# 或:"{SKILL_ROOT}/scripts/dify" <子命令> [选项]bin/difycd.env.dify/cd.env# 1. 配置 .env(见 skill 内 .env.example)
# 2. 初始化 .dify/ 骨架(dsl、cache、manifest 等)
python3 "{SKILL_ROOT}/scripts/dify_manage.py" init
# 3. 需要 Console 操作时(须用户确认)
python3 "{SKILL_ROOT}/scripts/dify_manage.py" login
# 4. 列出应用
python3 "{SKILL_ROOT}/scripts/dify_manage.py" appslogin.dify/session.jsondsl/cache/init| 路径 | 内容 | Git |
|---|---|---|
| | 真实 ignore |
| Console token | ignore |
| 应用索引、hash | 建议提交 |
| | remote ignore |
| 业务元数据 | 按需 |
| | 按需 |
| | ignore |
OS env.dify/session.json.envloginrefreshsession.jsonapps--app-id--api-keypython3 "{SKILL_ROOT}/scripts/dify_manage.py" init
python3 "{SKILL_ROOT}/scripts/dify_manage.py" apps
python3 "{SKILL_ROOT}/scripts/dify_manage.py" pull --app-id <id>
# 编辑 .dify/dsl/<id>/working.yml
python3 "{SKILL_ROOT}/scripts/dify_manage.py" dsl diff --app-id <id>
python3 "{SKILL_ROOT}/scripts/dify_manage.py" deploy --app-id <id>dsl refreshdsl resetdsl prune --keep 3pull --sync-workingcache download "https://example.com/a.jpg"
files upload path-or-url --api-key app-xxx
run --api-key app-xxx --file-url product_image=https://...
run --api-key app-xxx --fixtures .dify/fixtures/<id>/smoke.jsonpulldsl diffdefaultfile_uploadinitappspullworking.ymldsl diffdsl status --check-remotecache downloadfiles uploadrun --file-urllogin