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

# 发布插件

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

> 本文档由 AI 自动翻译。如有任何不准确之处，请参考 [英文原版](/en/develop-plugin/publishing/marketplace-listing/release-overview)。

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

发布前，先完成开发和测试，并阅读 [插件开发指南](/zh/develop-plugin/publishing/standards/contributor-covenant-code-of-conduct)。

## 选择一种方式

<CardGroup cols={3}>
  <Card title="市场" icon="store" href="/zh/develop-plugin/publishing/marketplace-listing/release-to-dify-marketplace">
    官方目录。经过审核、值得信赖，每位 Dify 用户都可一键安装。
  </Card>

  <Card title="GitHub 仓库" icon="github" href="/zh/develop-plugin/publishing/marketplace-listing/release-to-individual-github-repo">
    在 GitHub 上自托管。无需审核，用户通过仓库 URL 安装。
  </Card>

  <Card title="本地文件" icon="file-zipper" href="/zh/develop-plugin/publishing/marketplace-listing/release-by-file">
    一个直接交付的 `.difypkg` 文件。适合私有或内部插件。
  </Card>
</CardGroup>

## 对比

|          | <Icon icon="store" /> 市场 | <Icon icon="github" /> GitHub | <Icon icon="file-zipper" /> 本地文件 |
| :------- | :----------------------- | :---------------------------- | :------------------------------- |
| **受众**   | 每位 Dify 用户               | 任何拥有仓库 URL 的人                 | 你交付文件的对象                         |
| **审核**   | 有：12 项自动检查 + 人工审核        | 无                             | 无                                |
| **安装路径** | 在市场界面一键安装                | 通过 GitHub 对话框安装               | 在插件页面上传                          |
| **版本管理** | 每个版本一个新 PR，提供自动化工作流      | 带 `.difypkg` 资产的 GitHub 发布    | 重新打包并重新分发                        |
| **适用场景** | 成熟且广泛适用的插件               | 开源项目、通过 URL 共享的内部工具           | 私有插件、内部测试、临时分发                   |

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

## 经验法则

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

## 相关资源

<CardGroup cols={2}>
  <Card title="插件开发指南" icon="clipboard-check" href="/zh/develop-plugin/publishing/standards/contributor-covenant-code-of-conduct">
    市场提交的质量标准。
  </Card>

  <Card title="隐私指南" icon="shield-halved" href="/zh/develop-plugin/publishing/standards/privacy-protection-guidelines">
    `PRIVACY.md` 和数据披露要求。
  </Card>

  <Card title="通用规范" icon="file-code" href="/zh/develop-plugin/features-and-specs/plugin-types/general-specifications">
    每个插件都必须设置的清单字段。
  </Card>

  <Card title="快速开始" icon="rocket" href="/zh/develop-plugin/getting-started/getting-started-dify-plugin">
    初次接触插件？从这里开始。
  </Card>
</CardGroup>
