> ## 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 プラグインを `.difypkg` ファイルにパッケージ化し、直接インストールしたり他のユーザーに渡したりできます。マーケットプレイスや GitHub での公開は不要です

`.difypkg` は Dify プラグインのポータブルな形式です。これを入手すれば、誰でもファイルをアップロードしてプラグインページからインストールできます。**プライベートプラグイン**、**内部テスト**、または少人数のグループへの **非公開配布** に適した方法です。

より広く配布する場合は、[公開の概要](https://enterprise-docs.dify.ai/ja/3.13.x/develop/plugins/publishing/marketplace-listing/release-overview.md) を参照してください。

## 前提条件

* [Dify プラグイン CLI](https://enterprise-docs.dify.ai/ja/3.13.x/develop/plugins/getting-started/cli.md) がインストールされていること。`dify version` を実行して確認します。
* 開発済みのプラグインプロジェクト。まだ構築していない場合は、[Tool プラグインのチュートリアル](https://enterprise-docs.dify.ai/ja/3.13.x/develop/plugins/dev-guides-and-walkthroughs/tool-plugin.md) から始めてください。
* パッケージ化の前に、[リモートデバッグ](https://enterprise-docs.dify.ai/ja/3.13.x/develop/plugins/features-and-specs/plugin-types/remote-debug-a-plugin.md) でプラグインをテスト済みであること。

> [!NOTE]
>
> `manifest.yaml` および各 `provider/*.yaml` の `author` フィールドは、GitHub のユーザー名と一致している必要があります。一致しない場合、インストール時に `plugin_unique_identifier is not valid` エラーが発生します。マニフェスト仕様の詳細は、[一般仕様](https://enterprise-docs.dify.ai/ja/3.13.x/develop/plugins/features-and-specs/plugin-types/general-specifications.md) を参照してください。

## プラグインのパッケージ化

**1. プロジェクトの上位ディレクトリに移動**

プラグインプロジェクトの **上位** ディレクトリに移動します（プロジェクトが現在の作業ディレクトリのサブディレクトリになるようにします）。

**2. パッケージ化コマンドを実行**

```bash theme={null}
dify plugin package ./your_plugin_project
```

CLI は現在のディレクトリに `your_plugin_project.difypkg` ファイルを生成します。

![生成されたプラグインファイル](https://assets-docs.dify.ai/2024/12/98e09c04273eace8fe6e5ac976443cca.png)

## ファイルからのインストール

**1. プラグインページを開く**

Dify で、右上の **プラグイン** アイコンをクリックします。

**2. プラグインをインストール > ローカルファイルから を選択**

または、`.difypkg` をプラグインページの空白部分にドラッグします。

**3. インストールを確認**

プラグインが要求する権限を確認し、**インストール** をクリックします。

![プラグインファイルのインストール](https://assets-docs.dify.ai/2024/12/8c31c4025a070f23455799f942b91a57.png)

> [!TIP]
>
> プラグインはワークスペースに追加され、Agent、ワークフロー、ツールですぐに使用できます。追加の操作は必要ありません。

> [!WARNING]
>
> セルフホスト版 Dify は、デフォルトで署名検証を強制します。ローカルファイルからインストールされた未署名の `.difypkg` ファイルは、署名するか検証設定を変更しない限り拒否されます。[サードパーティ署名検証](https://enterprise-docs.dify.ai/ja/3.13.x/develop/plugins/publishing/standards/third-party-signature-verification.md) を参照してください。

## ファイルの共有

`.difypkg` ファイルを、メール、社内ファイル共有、または管理下にある任意のチャネルで、ユーザーに直接渡します。ユーザーは上記と同じ手順でインストールします。

より広く配布したい場合は、次の方法を検討してください。

> [card] [GitHub で公開](https://enterprise-docs.dify.ai/ja/3.13.x/develop/plugins/publishing/marketplace-listing/release-to-individual-github-repo.md)
>
> `.difypkg` を GitHub リリースに添付し、ユーザーはリポジトリの URL からインストールします。

> [card] [マーケットプレイスに公開](https://enterprise-docs.dify.ai/ja/3.13.x/develop/plugins/publishing/marketplace-listing/submit-plugin-to-marketplace.md)
>
> `langgenius/dify-plugins` に PR を作成し、公式カタログに掲載します。

## 関連リソース

* [公開の概要](https://enterprise-docs.dify.ai/ja/3.13.x/develop/plugins/publishing/marketplace-listing/release-overview.md)
* [Dify プラグイン CLI](https://enterprise-docs.dify.ai/ja/3.13.x/develop/plugins/getting-started/cli.md)
* [リモートデバッグ](https://enterprise-docs.dify.ai/ja/3.13.x/develop/plugins/features-and-specs/plugin-types/remote-debug-a-plugin.md)
* [サードパーティ署名検証](https://enterprise-docs.dify.ai/ja/3.13.x/develop/plugins/publishing/standards/third-party-signature-verification.md)
* [一般仕様](https://enterprise-docs.dify.ai/ja/3.13.x/develop/plugins/features-and-specs/plugin-types/general-specifications.md)


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