.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.
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.
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:- Set up anything the new app needs that the export leaves behind.
- 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
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 theapp.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.