This document primarily explains how to upgrade from an older Community Edition version to v1.0.0. If you have not installed the Dify Community Edition yet, you can directly clone the Dify project and switch to the 1.0.0 branch. For installation commands, refer to the documentation.
To experience the plugin functionality in the Community Edition, you need to upgrade to versionv1.0.0. This document will guide you through the steps of upgrading from older versions to v1.0.0 to access the plugin ecosystem features.
Start the Upgrade
The upgrade process involves the following steps:- Backup your data
- Migrate plugins
- Upgrade the main dify project
1. Backup Data
1.1 Execute thecd command to navigate to your Dify project directory and create a backup branch.
1.2 Run the following command to back up your docker-compose YAML file (optional).
2. Upgrade the Version
v1.0.0 supports deployment via Docker Compose. Navigate to your Dify project path and run the following commands to upgrade to the Dify version:
3. Migrate Tools to Plugins
Important Note on Command Execution and Package Management:
- Default Container Name: The
docker execcommand examples usedocker-api-1. If your API container has a different name or ID (which you can find usingdocker ps), please adjust the command accordingly.- Python Package Manager (
uvvs.poetry):
- Dify switched from
poetrytouvfor Python package management starting with version v1.3.0 to enhance performance. For general operations in Dify v1.3.0 or newer, the standard command isuv run flask .... - This guide focuses on upgrading to Dify v1.0.0. During the period of Dify v1.0.0 up to (but not including) v1.3.0,
poetrywas the package manager. Therefore, theflaskcommands in the examples below correctly usepoetry run .... The code examples emphasize the currentuvstandard in comments first, then show thepoetrycommand relevant to this guide’s specific v1.0.0 migration scope.
- Run the
docker pscommand to check the API container name or ID. The default is oftendocker-api-1.
docker exec -it docker-api-1 bash to enter the container terminal (if your container name is different, use that instead), and then run:
If an error occurs (e.g.,This command will extract all models and tools currently in use in the environment. The workers parameter controls the number of parallel processes used during extraction and can be adjusted as needed. After the command runs, it will generate auvorpoetrynot found) when trying to execute the commands as per this guide for v1.0.0 migration, ensure thepoetryenvironment is correctly set up on the server as per the original prerequisites for that version. If the terminal asks for input after running apoetrycommand, press “Enter” to skip.
plugins.jsonl file containing plugin information for all workspaces in the current Dify instance.
Ensure your network can access the public internet and support access to: https://marketplace.dify.ai. Continue running the following command in the docker-api-1 container:
provider name by appending langgenius/{provider_name}/{provider_name} to it.
Verify the Migration
Access the Dify platform and click the “Plugins” button in the upper-right corner to check if the previously used tools have been correctly installed. Randomly use one of the plugins to verify if it works properly. If the plugins work well, the version upgrade and data migration have been successfully completed.Edit this page | Report an issue