Dify
English
English
  • Getting Started
    • Welcome to Dify
      • Features and Specifications
      • List of Model Providers
    • Dify Community
      • Deploy with Docker Compose
      • Start with Local Source Code
      • Deploy with aaPanel
      • Start Frontend Docker Container Separately
      • Environment Variables Explanation
      • FAQs
    • Dify Cloud
    • Dify Premium on AWS
    • Dify for Education
  • Guides
    • Model
      • Add New Provider
      • Predefined Model Integration
      • Custom Model Integration
      • Interfaces
      • Schema
      • Load Balancing
    • Application Orchestration
      • Create Application
      • Chatbot Application
        • Multiple Model Debugging
      • Agent
      • Application Toolkits
        • Moderation Tool
    • Workflow
      • Key Concepts
      • Variables
      • Node Description
        • Start
        • End
        • Answer
        • LLM
        • Knowledge Retrieval
        • Question Classifier
        • Conditional Branch IF/ELSE
        • Code Execution
        • Template
        • Doc Extractor
        • List Operator
        • Variable Aggregator
        • Variable Assigner
        • Iteration
        • Parameter Extraction
        • HTTP Request
        • Agent
        • Tools
        • Loop
      • Shortcut Key
      • Orchestrate Node
      • File Upload
      • Error Handling
        • Predefined Error Handling Logic
        • Error Type
      • Additional Features
      • Debug and Preview
        • Preview and Run
        • Step Run
        • Conversation/Run Logs
        • Checklist
        • Run History
      • Application Publishing
      • Structured Outputs
      • Bulletin: Image Upload Replaced by File Upload
    • Knowledge
      • Create Knowledge
        • 1. Import Text Data
          • 1.1 Import Data from Notion
          • 1.2 Import Data from Website
        • 2. Choose a Chunk Mode
        • 3. Select the Indexing Method and Retrieval Setting
      • Manage Knowledge
        • Maintain Documents
        • Maintain Knowledge via API
      • Metadata
      • Integrate Knowledge Base within Application
      • Retrieval Test / Citation and Attributions
      • Knowledge Request Rate Limit
      • Connect to an External Knowledge Base
      • External Knowledge API
    • Tools
      • Quick Tool Integration
      • Advanced Tool Integration
      • Tool Configuration
        • Google
        • Bing
        • SearchApi
        • StableDiffusion
        • Dall-e
        • Perplexity Search
        • AlphaVantage
        • Youtube
        • SearXNG
        • Serper
        • SiliconFlow (Flux AI Supported)
        • ComfyUI
    • Publishing
      • Publish as a Single-page Web App
        • Web App Settings
        • Text Generator Application
        • Conversation Application
      • Embedding In Websites
      • Developing with APIs
      • Re-develop Based on Frontend Templates
    • Annotation
      • Logs and Annotation
      • Annotation Reply
    • Monitoring
      • Data Analysis
      • Integrate External Ops Tools
        • Integrate LangSmith
        • Integrate Langfuse
        • Integrate Opik
    • Extension
      • API-Based Extension
        • External Data Tool
        • Deploy API Tools with Cloudflare Workers
        • Moderation
      • Code-Based Extension
        • External Data Tool
        • Moderation
    • Collaboration
      • Discover
      • Invite and Manage Members
    • Management
      • App Management
      • Team Members Management
      • Personal Account Management
      • Subscription Management
      • Version Control
  • Workshop
    • Basic
      • How to Build an AI Image Generation App
    • Intermediate
      • Build An Article Reader Using File Upload
      • Building a Smart Customer Service Bot Using a Knowledge Base
      • Generating analysis of Twitter account using Chatflow Agent
  • Community
    • Seek Support
    • Become a Contributor
    • Contributing to Dify Documentation
  • Plugins
    • Introduction
    • Quick Start
      • Install and Use Plugins
      • Develop Plugins
        • Initialize Development Tools
        • Tool Plugin
        • Model Plugin
          • Create Model Providers
          • Integrate the Predefined Model
          • Integrate the Customizable Model
        • Agent Strategy Plugin
        • Extension Plugin
        • Bundle
      • Debug Plugin
    • Manage Plugins
    • Schema Specification
      • Manifest
      • Endpoint
      • Tool
      • Agent
      • Model
        • Model Designing Rules
        • Model Schema
      • General Specifications
      • Persistent Storage
      • Reverse Invocation of the Dify Service
        • App
        • Model
        • Tool
        • Node
    • Best Practice
      • Develop a Slack Bot Plugin
      • Dify MCP Plugin Guide: Connect Zapier and Automate Email Delivery with Ease
    • Publish Plugins
      • Publish Plugins Automatically
      • Publish to Dify Marketplace
        • Plugin Developer Guidelines
        • Plugin Privacy Protection Guidelines
      • Publish to Your Personal GitHub Repository
      • Package the Plugin File and Publish it
      • Signing Plugins for Third-Party Signature Verification
    • FAQ
  • Development
    • Backend
      • DifySandbox
        • Contribution Guide
    • Models Integration
      • Integrate Open Source Models from Hugging Face
      • Integrate Open Source Models from Replicate
      • Integrate Local Models Deployed by Xinference
      • Integrate Local Models Deployed by OpenLLM
      • Integrate Local Models Deployed by LocalAI
      • Integrate Local Models Deployed by Ollama
      • Integrate Models on LiteLLM Proxy
      • Integrating with GPUStack for Local Model Deployment
      • Integrating AWS Bedrock Models (DeepSeek)
    • Migration
      • Migrating Community Edition to v1.0.0
  • Learn More
    • Use Cases
      • DeepSeek & Dify Integration Guide: Building AI Applications with Multi-Turn Reasoning
      • Private Deployment of Ollama + DeepSeek + Dify: Build Your Own AI Assistant
      • Build a Notion AI Assistant
      • Create a MidJourney Prompt Bot with Dify
      • Create an AI Chatbot with Business Data in Minutes
      • Integrating Dify Chatbot into Your Wix Website
      • How to connect with AWS Bedrock Knowledge Base?
      • Building the Dify Scheduler
      • Building an AI Thesis Slack Bot on Dify
    • Extended Reading
      • What is LLMOps?
      • Retrieval-Augmented Generation (RAG)
        • Hybrid Search
        • Re-ranking
        • Retrieval Modes
      • How to Use JSON Schema Output in Dify?
    • FAQ
      • Self-Host
      • LLM Configuration and Usage
      • Plugins
  • Policies
    • Open Source License
    • User Agreement
      • Terms of Service
      • Privacy Policy
      • Get Compliance Report
  • Features
    • Workflow
Powered by GitBook
On this page
  • Overview
  • Key Concepts
  • Features
  • How to View All Versions
  • How to Find a Specific Version
  • How to Publish a New Version
  • How to Edit a Published Version
  • How to Delete a Previous Version
  • How to Restore a Published Version
  • Version Control Workflow
  • Phase 1: Initial Draft
  • Phase 2: First Release
  • Phase 3: Second Release
  • Phase 4: Restore
  • Phase 5: Publish a Restored Version
  • Complete Workflow Demo
  • FAQ
  1. Guides
  2. Management

Version Control

PreviousSubscription ManagementNextBasic

Last updated 3 months ago

This article explains how to manage versions in Dify’s Chatflow and Workflow.

Overview

Version Control Panel allows you to track changes, publish updates, and restore previous versions of your applications.

Key Concepts

  • Current Draft: Your working version where you make changes.

Current draft
  • Published Version: Any version released to production.

  • Latest Version: The current production version.

  • Previous Version: Any older published version.

  • Restore: Return to any earlier version of your application.

Features

  • View all versions: Access and review details of all published versions.

  • Find specific versions: Use filters to find a specific version.

  • Publish new versions: Release new application versions with custom names and release notes.

  • Edit published versions: Edit the title and release notes of a published version.

  • Delete previous versions: Remove outdated versions to keep the list organized.

  • Restore published versions: Load a published version into drafts for modifications.

How to View All Versions

To view all versions:

  1. Click the history icon to enter the Version Control Panel.

  1. View versions in chronological order with titles, release notes, publish dates, and publishers.

  2. (Optional) Click Load More to view more historical versions.

How to Find a Specific Version

To find versions you published:

  1. Click the filter icon to open the filter dialog.

  2. Choose between:

  • All: Shows versions published by you and other users

  • Only yours: Shows only versions you published

To find named versions:

Toggle Only show named versions to display only the versions with custom names.

How to Publish a New Version

To publish a new version:

  1. Click Publish > Publish Update to release the current version.

  1. The newly published version will be marked as Latest in the panel.

How to Edit a Published Version

To edit a published version:

  1. In the Version Control Panel, find the version you want to edit.

  2. Click its action menu icon.

  3. Choose either:

  • Name this version for versions with default names.

  • Edit version info for versions with custom names.

  1. Confirm Publish.

How to Delete a Previous Version

To delete a Previous version:

  1. Find the published version you want to delete.

  2. Click the action menu icon and select Delete.

  1. Confirm Delete.

  • The Current Draft cannot be deleted

  • The Latest Version (marked as “Latest”) cannot be deleted

How to Restore a Published Version

To restore a published version:

  1. Find the published version you want to restore.

  2. Click its action menu icon and select Restore.

  1. Confirm Restore. The system will load the selected version into your current draft.

Version Control Workflow

Here is how versions work through a typical workflow:

Note: Matching colors indicate identical version content.

Phase 1: Initial Draft

  • System creates a Draft (Version A).

Phase 2: First Release

  • Version A is published, becoming the Latest Version.

  • System creates a new Draft (Version B).

Phase 3: Second Release

  • Version B is published, becoming the Latest Version.

  • Version A becomes a Previous Version.

  • System creates a new Draft (Version C).

Phase 4: Restore

  • Version A is restored to Draft, replacing Version C.

  • Version B remains the Latest Version.

Phase 5: Publish a Restored Version

  • Restored Version A is published, becoming the Latest Version.

  • Previous Versions A and B become Previous Versions.

  • System creates a new Draft (Version D).

Complete Workflow Demo

FAQ

  • What are the different version types?

Type
Description
Access
Deletion
Restoration

Current Draft

Current work in progress

Requires publishing to go live

Not accessible online

Not deletable

Latest Version

Current live version

Requires new draft for updates

Live and accessible

Can be restored

Previous Version

Previous published versions

Can restore to draft

Stored in history only

Can be restored

Published Version

Includes both latest and previous versions

/

/

/

  • What happens to my current draft when restoring a previous version?

When restoring a previous version, that version’s content becomes your new draft. Your current draft will be lost, so please review changes carefully before proceeding.

  • Which apps support version control?

Version control is currently available for Chatflow and Workflow applications only. It is not yet supported for Chatbot, Text Generator, or Agents.

Latest version
Previous version
Restore feature
View all versions
Load more
All or only yours
Only show named versions
Publish new version
Latest version marked
Name this version
Edit version info
Edit version info
Delete version
Delete Version Confirmed
Restore version
Restore version confirmed
Phase 1
Phase 2
Phase 3
Phase 4
Phase 5
Workflow