Skip to content

sattosan/dify-apps-dsl-exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DSL of Dify Apps Exporter

This Python project allows you to download DSL files for all apps from the Dify platform via their API.

Requirements

  • Python 3.13 or higher
  • Poetry for dependency management

Installation

  1. Clone the repository:
$ git clone https://github.com/sattosan/dify-apps-dsl-exporter.git
$ cd dify-apps-dsl-exporter
  1. Install dependencies using Poetry:
$ poetry install
  1. 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

UseCase

Export ALL DSL Files

$ poetry run python src/export.py

Import ALL DSL Files

$ poetry run python src/import.py

Delete All DSL Files

$ poetry run python src/delete.py

About

This code utilizes Dify's CONSOLE API to batch download DSL files for all apps within the dashboard.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages