[PR #4349] feat: install app from remote #24492

Closed
opened 2026-02-21 20:23:06 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/4349

State: closed
Merged: No


Description

I am building DifyShare, a platform to share Dify apps. To allow importing them with a button click from DifyShare, this PR introduces the ability to install apps from an url. This functionality can be used for other scenarios too.

Type of Change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

I tested it locally. To test it manually:

  • Configure beta.difyshare.com as allowed host by adding this to the .env for the web app: APP_IMPORT_FROM_REMOTE_ALLOWED_HOSTS="beta.difyshare.com"
  • Visit the Dify Studio (navigate to /apps)
  • Add ?action=installApp&remoteInstallUrl=https://beta.difyshare.com/api/flow/663ffe78002cf37178fa/download to the URL
  • Open the URL
    • A loading spinner should be rendered with a message in the users locale
    • The Chatflow from DifyShare should succeed and you see the workflow editor

Suggested Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I ran dev/reformat(backend) and cd web && npx lint-staged(frontend) to appease the lint gods
  • optional I have made corresponding changes to the documentation
  • optional I have added tests that prove my fix is effective or that my feature works
  • optional New and existing unit tests pass locally with my changes
**Original Pull Request:** https://github.com/langgenius/dify/pull/4349 **State:** closed **Merged:** No --- # Description I am building DifyShare, a platform to share Dify apps. To allow importing them with a button click from DifyShare, this PR introduces the ability to install apps from an url. This functionality can be used for other scenarios too. ## Type of Change - [x] New feature (non-breaking change which adds functionality) # How Has This Been Tested? I tested it locally. To test it manually: - Configure beta.difyshare.com as allowed host by adding this to the .env for the web app: `APP_IMPORT_FROM_REMOTE_ALLOWED_HOSTS="beta.difyshare.com"` - Visit the Dify Studio (navigate to /apps) - Add `?action=installApp&remoteInstallUrl=https://beta.difyshare.com/api/flow/663ffe78002cf37178fa/download` to the URL - Open the URL - A loading spinner should be rendered with a message in the users locale - The Chatflow from DifyShare should succeed and you see the workflow editor # Suggested Checklist: - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas - [ ] My changes generate no new warnings - [x] I ran `dev/reformat`(backend) and `cd web && npx lint-staged`(frontend) to appease the lint gods - [ ] `optional` I have made corresponding changes to the documentation - [ ] `optional` I have added tests that prove my fix is effective or that my feature works - [ ] `optional` New and existing unit tests pass locally with my changes
yindo added the pull-request label 2026-02-21 20:23:06 -05:00
yindo closed this issue 2026-02-21 20:23:07 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#24492