Loading...
Loading...
Compare original and translation side by side
SKILL.md~/.cursor/skills/dify-manage/undefinedSKILL.md~/.cursor/skills/dify-manage/undefined
业务项目内可自建 `bin/dify` 包装,启动时 `cd` 到项目根以发现 `.env` / `.dify/`。
业务项目内可自建 `bin/dify` 包装,启动时 `cd` 到项目根以发现 `.env` / `.dify/`。cd.envundefinedcd.envundefined
`login` 也会自动创建 `.dify/` 并写入 `session.json`,但不会建好 `dsl/`、`cache/` 等子目录;**首次务必先 `init`**。
`login` 也会自动创建 `.dify/` 并写入 `session.json`,但不会建好 `dsl/`、`cache/` 等子目录;**首次务必先 `init`**。| 路径 | 内容 | Git |
|---|---|---|
| | 真实 ignore |
| Console token | ignore |
| 应用索引、hash | 建议提交 |
| | remote ignore |
| 业务元数据 | 按需 |
| | 按需 |
| | ignore |
| 路径 | 内容 | Git |
|---|---|---|
| | 需添加至.gitignore |
| Console token | 需忽略 |
| 应用索引、hash | 建议提交至Git |
| | 远程文件需忽略 |
| 业务元数据 | 按需提交 |
| | 按需提交 |
| | 需忽略 |
OS env.dify/session.json.envloginrefreshsession.jsonOS env.dify/session.json.envloginrefreshsession.jsonapps--app-id--api-keyapps--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>python3 "{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>
维护:`dsl refresh`、`dsl reset`、`dsl prune --keep 3`、`pull --sync-working`。
维护:`dsl refresh`、`dsl reset`、`dsl prune --keep 3`、`pull --sync-working`。cache 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.jsoncache 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_uploadpulldsl diffdefaultfile_uploadinitappspullworking.ymldsl diffdsl status --check-remotecache downloadfiles uploadrun --file-urllogininitappspullworking.ymldsl diffdsl status --check-remotecache downloadfiles uploadrun --file-urllogin