dify-ops
Dify self-hosted update operations plugin. Pre-flight the target release and the bundled Weaviate migration path, back up volumes with the stack down, merge a release tag into the local dev branch, sync .env variables, and pull and restart containers for Dify Docker deployments.
v1.3.0Updated
- dify
- docker
- self-hosted
- update
- ops
- docker-compose
- env-sync
- llm-platform
Install
Pick your agent for the steps.
Install on Claude Code
1.Add the marketplace
/plugin marketplace add Agents-Store/claude-plugins2.Install the plugin
/plugin install dify-ops@agents-store-claude-pluginsType it inside Claude Code.
Install on GitHub Copilot CLI
1.Add the marketplace
copilot plugin marketplace add Agents-Store/claude-plugins2.Install the plugin
copilot plugin install dify-ops@agents-store-claude-plugins
GitHub Copilot CLI does not receive: commands, agents.
Install on Cursor
1.Manual install
Cursor has no install command for a single plugin. Copy the plugin's folder from its place in the mirror on GitHub into the place Cursor reads plugins from.
Cursor’s plugin documentation now lives at docs.grok.com (cursor.com/docs/plugins redirects there). Plugins come from its marketplace, a team marketplace or a local folder.
Install on Codex
1.Add the marketplace
codex plugin marketplace add Agents-Store/codex-plugins2.Install the plugin
codex plugin add dify-ops@agents-store-codex-plugins
Codex does not receive: commands, agents.
Install on Gemini CLI
1.Clone the mirror
git clone https://github.com/Agents-Store/gemini-extensions2.Install the plugin
gemini extensions link ./gemini-extensions/dify-opsRun it from the folder you cloned into.
Consumer access to Gemini CLI ended on 2026-06-18. This target serves enterprise Gemini Code Assist; Antigravity is the consumer successor.
Install on Antigravity
1.Clone the mirror
git clone https://github.com/Agents-Store/antigravity-skills2.Install the plugin
agy plugin install ./antigravity-skills/dify-opsRun it from the folder you cloned into.
Antigravity does not receive: commands.
Install on Kimi Code
1.Clone the mirror
git clone https://github.com/Agents-Store/kimi-plugins2.Install the plugin
/plugins install ./kimi-plugins/dify-opsRun it from the folder you cloned into, and type it inside Kimi Code.
Kimi Code does not receive: commands, agents, hooks, MCP servers.
Install on Devin
1.Install the plugin
devin plugins install Agents-Store/devin-plugins#dify-ops
Devin does not receive: commands, agents, hooks, MCP servers.
Install on Hermes Agent
1.Install the plugin
hermes plugins install Agents-Store/hermes-plugins/dify-ops
Hermes Agent does not receive: commands, agents, hooks, MCP servers.
Install on OpenCode
1.Manual install
OpenCode has no install command for a single plugin. Copy the plugin's folder from its place in the mirror on GitHub into the place OpenCode reads plugins from.
OpenCode does not receive: hooks.
Install on Pi
1.Manual install
Pi has no install command for a single plugin. Copy the plugin's folder from its place in the mirror on GitHub into the place Pi reads plugins from.
Pi does not receive: commands, agents, hooks, MCP servers.
Install on OpenClaw
1.Clone the mirror
git clone https://github.com/Agents-Store/openclaw-generated-plugins2.Install the plugin
openclaw plugins install ./openclaw-generated-plugins/dify-opsRun it from the folder you cloned into.
OpenClaw does not receive: commands, agents, hooks, MCP servers.
Install on Agent Plugins 1.0
1.Manual install
Agent Plugins 1.0 has no install command for a single plugin. Copy the plugin's folder from its place in the mirror on GitHub into the place Agent Plugins 1.0 reads plugins from.
Agent Plugins 1.0 does not receive: commands, agents, hooks.
What is inside
Skills (4)
- dify-docker-architecture
Dify Docker Compose deployment architecture — services, container naming, directory layout, .env.example and envs/ structure, and Docker project name conventions. Use when working with Dify Docker setup, understanding container services, debugging container issues, or needing to know the Dify directory structure. Triggers on "dify docker", "dify containers", "dify services", "dify architecture", "dify compose".
- env-sync
Synchronize .env with .env.example for Dify Docker deployments and review the envs/ defaults and override files — new, removed and changed variables, existing values kept, secrets never printed. Use when syncing env variables, checking for new configuration variables, comparing .env.example vs .env, "env sync", "new env variables", "missing environment variables", or after pulling Dify updates. Not for the git merge and backup (update-workflow) or the service layout (dify-docker-architecture).
- examples
End-to-end scenario walkthroughs for updating self-hosted Dify. Use when the user asks for "dify update example", "how to update dify", "show me an update walkthrough", "dify upgrade guide", "step-by-step dify update", or needs a complete example of the update process.
- update-workflow
Git and backup workflow for updating self-hosted Dify — pick the target tag, pre-flight the bundled Weaviate migration path, back up volumes with the stack down, merge into dev, handle conflicts, pull images, verify, roll back. Use when updating Dify, merging upstream changes, handling merge conflicts in Dify, backing up before an update, or switching to a specific Dify version/tag. Triggers on "update dify", "pull dify changes", "merge main into dev", "upgrade dify", "dify version", "dify backup", "weaviate upgrade".
Commands (2)
- status
Show current Dify instance status — git branch, running version vs latest stable tag, container health, .env sync state
- update
Update self-hosted Dify — pre-flight (Weaviate migration gate), back up volumes with the stack down, merge a release tag into dev, sync env, pull images, verify
Agents (1)
- dify-updater
Dify self-hosted update operations agent. Handles updating Dify Docker deployments — checking the target release (including the bundled Weaviate migration path), backing up volumes with the stack down, merging a release tag into the local dev branch, syncing environment variables, detecting Docker project names, and pulling and restarting containers. <example> Context: User wants to update to latest version user: "Update my Dify to the latest version" assistant: "I'll check your current Dify state, resolve the latest stable tag and run the pre-flight before changing anything." <commentary> Standard update request — agent runs the full update workflow: pre-flight (Weaviate gate), backup with the stack down, merge, env sync, pull and start. </commentary> </example> <example> Context: User wants a specific version user: "Update Dify to version 1.17.1" assistant: "I'll fetch tags, run the pre-flight for 1.17.1 and, once the backup exists, merge it into your dev branch." <commentary> Tagged release update — agent verifies the tag exists (tags have no v prefix), stops at the Weaviate gate when it applies, backs up, merges into dev, handles conflicts. </commentary> </example> <example> Context: User wants to check status user: "Check if my Dify needs updating" assistant: "I'll compare the version you run with the latest stable release and report the status." <commentary> Read-only check — agent compares the running image tag with the latest stable tag and reports, including whether the bundled Weaviate needs a staged upgrade. </commentary> </example> <example> Context: User has merge conflicts user: "I have merge conflicts after updating Dify" assistant: "I'll look at the conflicted files and help you resolve them." <commentary> Conflict resolution — agent lists conflicted files, shows diffs, recommends resolution strategy. </commentary> </example> <example> Context: User wants env sync only user: "Sync my Dify .env with the latest .env.example" assistant: "I'll compare your .env against .env.example and the envs/ templates and add any missing variables." <commentary> Standalone env sync — agent runs the official sync script through a masking filter, checks the keys a name comparison misses, and appends missing variables after confirmation. </commentary> </example>
README
Dify self-hosted update operations plugin for the Agents Store marketplace. Helps update Dify Docker deployments safely: pre-flight against the target release (including the bundled Weaviate migration path), back up the volumes with the stack down, merge a release tag into a local dev branch, sync environment variables, pull images and verify.
Written against the Dify 1.20.x layout (generated docker-compose.yaml, tracked envs/**/*.defaults with local *.env overrides, a short root .env.example). Dify releases every one to five weeks; the plugin reads the target release's own notes before it changes anything.
Type
Technology (Level 1) -- knowledge-only, no MCP server.
Skills
| Skill | Description |
|---|---|
dify-docker-architecture | Dify Docker Compose setup -- services, containers, directory layout, .env and envs/ |
update-workflow | Update workflow -- target tag, Weaviate migration gate, backup, merge, conflict handling, rollback |
env-sync | .env vs .env.example and envs/ synchronization -- detect new and changed variables, mask secrets |
examples | End-to-end update scenario walkthroughs |
Commands
| Command | Description |
|---|---|
/dify-ops:update [tag|main] [--yes] [--weaviate-staged] | Full update workflow -- pre-flight, plan, backup, merge, env sync, pull and start, verify. Default target: the latest stable tag |
/dify-ops:status | Check current Dify state -- running version vs latest stable tag, containers, env sync status |
Agent
dify-updater -- Handles Dify update operations conversationally, including merge conflict resolution and troubleshooting.
Prerequisites
- Dify installed from the official GitHub repo (https://github.com/langgenius/dify)
- Local
devbranch with customizations (forked frommain); an officialgit clone --branch <tag>has nodevbranch, the update creates it - Docker with Docker Compose >= 2.35.0 (
docker compose version) - Git configured with origin pointing to upstream Dify repo
gh(optional) to read the release notes of the versions between yours and the target
Workflow
- User runs
/dify-ops:update(or/dify-ops:update 1.17.1for a specific version,mainonly on request) - Plugin detects working directory (dify root or docker subdirectory)
- Pre-flight, read-only: git state, Docker Compose version, Docker project name, target tag, release notes, Weaviate migration gate
- Prints the eight-block plan (TARGET, PRECHECK, CHANGE, BACKUP, IMPACT, VALIDATE, ROLLBACK, APPLY) and waits for confirmation
- Backs up: copies
docker-compose.yamland.env, stops the stack,docker compose down, archivesvolumes/outside the repo - Merges the tag into
devand resolves any merge conflicts interactively - Syncs
.envwith.env.exampleand checks theenvs/override files against their defaults (adds new variables, masks secret values, lists dropped keys by name and restores them on request, checks the agent sandbox token and the retiredshared.env) - Runs
docker compose pullanddocker compose up -d - Verifies containers are healthy and asks for a test retrieval against a knowledge base
Weaviate gate
From Dify 1.17.1 the bundled Weaviate server moves from 1.27.0 to 1.39.2 (1.39.13 from 1.18.0), and an existing data volume cannot cross 12 minor versions in one step -- a plain pull and restart can silently and permanently break vector search. When the update crosses 1.17.1 on a bundled Weaviate that holds data, /dify-ops:update stops before any change and points to the official runbook (https://docs.dify.ai/en/self-host/deploy/troubleshooting/weaviate-server-migration-path). After following it, landing on the version the target release pins, re-run with --weaviate-staged. Fresh installs, external Weaviate and other vector stores are not affected.
Customizing
docker/docker-compose.yaml is generated and replaced by every release, and so are the envs/**/*.defaults files. Keep customizations in .env (host ports are EXPOSE_NGINX_PORT and EXPOSE_NGINX_SSL_PORT), in envs/**/*.env overrides copied from the matching *.defaults file (or from an optional *.env.example template), and in docker/docker-compose.override.yaml, which Compose reads automatically and upstream git ignores.
Source
- Source on GitHub
- Mirror: Agents-Store/claude-plugins
- Mirror: Agents-Store/cursor-plugins
- Mirror: Agents-Store/codex-plugins
- Mirror: Agents-Store/gemini-extensions
- Mirror: Agents-Store/antigravity-skills
- Mirror: Agents-Store/kimi-plugins
- Mirror: Agents-Store/devin-plugins
- Mirror: Agents-Store/hermes-plugins
- Mirror: Agents-Store/opencode-plugins
- Mirror: Agents-Store/pi-extensions
- Mirror: Agents-Store/openclaw-generated-plugins
- Mirror: Agents-Store/agentplugins