> ## Documentation Index
> Fetch the complete documentation index at: https://enterprise-docs.dify.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 发布插件

> 分发 Dify 插件的三种方式（Marketplace、GitHub 仓库或本地文件）以及如何选择合适的方式

Dify 支持三种分发插件的方式。它们的区别在于事先经过多少审核，以及插件触达的受众范围有多广。

发布前，先完成开发和测试，并阅读 [插件开发指南](https://enterprise-docs.dify.ai/zh/3.14.x/develop/plugins/publishing/standards/contributor-covenant-code-of-conduct.md)。

## 选择一种方式

> [card] [Marketplace](https://enterprise-docs.dify.ai/zh/3.14.x/develop/plugins/publishing/marketplace-listing/submit-plugin-to-marketplace.md)
>
> 官方目录。经过审核、值得信赖，每位 Dify 用户都可一键安装。

> [card] [GitHub 仓库](https://enterprise-docs.dify.ai/zh/3.14.x/develop/plugins/publishing/marketplace-listing/release-to-individual-github-repo.md)
>
> 在 GitHub 上自托管。无需审核，用户通过仓库 URL 安装。

> [card] [本地文件](https://enterprise-docs.dify.ai/zh/3.14.x/develop/plugins/publishing/marketplace-listing/release-by-file.md)
>
> 一个直接交付的 `.difypkg` 文件。适合私有或内部插件。

## 对比

| |  Marketplace |  GitHub |  本地文件 |
| :- | :- | :- | :- |
| **受众** | 每位 Dify 用户 | 任何拥有仓库 URL 的人 | 你交付文件的对象 |
| **审核** | 自动风险与软件包检查 + 人工审核 | 无 | 无 |
| **安装路径** | 在 Marketplace 界面一键安装 | 通过 GitHub 对话框安装 | 在插件页面上传 |
| **版本管理** | 每个版本都提交新软件包和新 PR | 带 `.difypkg` 资产的 GitHub 发布 | 重新打包并重新分发 |
| **适用场景** | 成熟且广泛适用的插件 | 开源项目、通过 URL 共享的内部工具 | 私有插件、内部测试、临时分发 |

> [!TIP]
>
> 许多开发者会 **先发布到 GitHub** 以快速迭代，待插件稳定后再提交到 **Marketplace**。同一个 `.difypkg` 文件适用于全部三种方式，区别只在于分发渠道。

## 经验法则

* **想要广泛触达并经过审核？** 使用 **Marketplace**。
* **想要完全掌控发布和版本管理？** 使用 **GitHub**。
* **私有或一次性使用？** 使用 **本地文件**。

## 相关资源

> [card] [插件开发指南](https://enterprise-docs.dify.ai/zh/3.14.x/develop/plugins/publishing/standards/contributor-covenant-code-of-conduct.md)
>
> Marketplace 提交的质量标准。

> [card] [隐私指南](https://enterprise-docs.dify.ai/zh/3.14.x/develop/plugins/publishing/standards/privacy-protection-guidelines.md)
>
> `PRIVACY.md` 和数据披露要求。

> [card] [通用规范](https://enterprise-docs.dify.ai/zh/3.14.x/develop/plugins/features-and-specs/plugin-types/general-specifications.md)
>
> 每个插件都必须设置的清单字段。

> [card] [快速开始](https://enterprise-docs.dify.ai/zh/3.14.x/develop/plugins/getting-started/getting-started-dify-plugin.md)
>
> 初次接触插件？从这里开始。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.