Skip to main content
Export an app to keep a copy, hand it to someone, or move it to another Dify instance or workspace. You get an app package, an .ifpkg file. Import an app package to create a new app from it, or to update one you already have, for example with a tested version that’s ready for production. To copy an app within the same workspace, choose Duplicate from the app’s menu instead.
Exporting and importing need these permissions:
  • Export: Import and export apps on the app, or Import and export agents for an Agent.
  • Import as a new app: Create apps, or both Create agents and Import and export agents for an Agent.
  • Import to update an app: Create apps, plus Import and export apps on that app.
Either import also needs Manage tools when the package carries workflows your app calls as tools, unless the package came from this workspace and its original tools are still there.The workspace Owner and Admins hold all of them by default. Editors hold every one except Manage tools.

Export an App

From the menu on an app or Agent’s card, or the top-left menu inside it, click Export App or Export Agent. For a Workflow, Chatflow, or new Agent, you export the current draft, including changes you haven’t published. To export a published version instead, open version history and choose Export App or Export Agent from that version’s menu. Other app types export their latest published configuration.

What the Export Leaves Behind

Everything that makes up the app comes along, except:
  • Used integrations (missing ones can all be installed in one click on import)
  • Linked knowledge bases
  • Swagger API and MCP tools
  • Workflows a new Agent or a new Agent node calls as tools
  • Other workflows your app calls as tools, when you don’t have Import and export apps on the app each one belongs to
  • Persistent files in an Agent’s file system, such as programs it installed in Build mode
  • Service API keys
  • Model and tool credentials
  • Logs and annotations
  • Past versions
  • Subscriptions for Integration Triggers

Choose Whether to Export Secret Values

When you export a Workflow or Chatflow that has Secret-type environment variables, you can choose whether to include their values.
Exports from version history never include secret values.
To include the values, turn on Export secret values. They’re written into the app package as plain text, so anyone who has it can read them. Do this only for an app package you’ll guard as closely as the secrets themselves. If you leave the values out, those variables arrive empty, and whoever imports the app fills them in.

Create a New App via Import

In Studio or Agents, click Create > Import App. This always creates a new app, with its own web app URL, and leaves your existing apps as they are. To import into a Workflow or Chatflow you already have and keep its web app URL and API keys, update it instead. After importing:
  1. Set up anything the new app needs that the export leaves behind.
  2. Set who can open its web app. A new app starts with web app access set to Specific members within the platform and nobody selected, so no one can open it until you change its access.

Update an Existing App via Import

Web app settings of the imported app, such as title and icon, reach your live web app as soon as you import, without publishing. The web app of every environment the app is deployed to changes too.Before importing, make sure the web app settings of the imported app are set to what your users should see.
Inside the Workflow or Chatflow, click Import App from the app’s top-left menu or the canvas right-click menu. The app package must be a Workflow or Chatflow export with nodes your app can use: a Workflow can’t take Answer nodes, and a Chatflow can’t take Output or Trigger nodes. The import replaces your draft, and the app’s name, description, and icon. It’s still the same app, with the same logs, annotations, API keys, web app access, and URLs for its web app and MCP server. Apart from web app settings, your users keep getting the published version until you publish the updated draft. If the app package came without secret values, fill them in again before you publish.

Import into an Earlier Dify Enterprise Version

A new Agent, or a workflow that uses the new Agent node, imports only into Dify Enterprise 3.14.x and later. To bring any other app into 3.13.x or earlier, extract the app package (it’s a ZIP file) and import the app.yaml DSL file inside on its own. Some configurations like web app settings and uploaded icons don’t carry over, so check and set them again after importing. The workflow tools the package carries don’t come along either: set up the workflows your app calls as tools in the target workspace before you run it.