This Python project allows you to download DSL files for all apps from the Dify platform via their API.
- Python 3.13 or higher
- Poetry for dependency management
- Clone the repository:
$ git clone https://github.com/sattosan/dify-apps-dsl-exporter.git
$ cd dify-apps-dsl-exporter
- Install dependencies using Poetry:
$ poetry install
- Create a .env file in the root directory with the following environment variables:
$ cp .env.example .env
DIFY_ORIGIN=http://localhost # Or the Dify origin URL
EMAIL=your-email@example.com # for Dify login
PASSWORD=your-password # for Dify login
$ poetry run python src/export.py
$ poetry run python src/import.py
$ poetry run python src/delete.py