Files
dify-docs/plugin_dev_ja/0221-initialize-development-tools.ja.mdx
2025-05-17 15:25:10 +00:00

90 lines
5.5 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
dimensions:
type:
primary: implementation
detail: standard
level: beginner
standard_title: Initialize Development Tools
language: ja
title: 開発ツールの初期化
description: このドキュメントでは、Difyプラグイン開発を開始する前に必要な準備作業について詳しく説明します。これには、Difyプラグインのひな形ツールdify-plugin-daemonのインストールとPython環境バージョン要件≥3.12)の設定の完全な手順が含まれます。また、さまざまなタイプのプラグイン開発の参考リンクも提供しています。
---
Dify プラグインを開発するには、以下の準備が必要です。このドキュメントは、[プラグイン開発](/plugin_dev_ja/0111-getting-started-dify-plugin.ja)を開始するための最初のステップです。
* Dify プラグインのひな形ツール
* Python 環境、バージョン ≥ 3.12
> Dify プラグイン開発のひな形ツールは `dify-plugin-daemon` とも呼ばれ、**プラグイン開発 SDK** と見なすことができます。
### **1. Dify プラグイン開発のひな形ツールのインストール**
[Dify Plugin CLI](https://github.com/langgenius/dify-plugin-daemon/releases) プロジェクトのページにアクセスし、最新バージョンとお使いのオペレーティングシステムに対応するツールをダウンロードしてインストールしてください。
この記事では、**Mシリーズチップを搭載した macOS** を例に説明します。`dify-plugin-darwin-arm64` ファイルをダウンロードした後、実行権限を付与します。
```
chmod +x dify-plugin-darwin-arm64
```
以下のコマンドを実行して、インストールが成功したかどうかを確認します。
```
./dify-plugin-darwin-arm64 version
```
> 「Apple では確認できませんでした」というエラーが表示された場合は、**「設定 → プライバシーとセキュリティ → セキュリティ」** に移動し、「このまま開く」ボタンをタップしてください。
コマンドを実行した後、ターミナルに `v0.0.1-beta.15` のようなバージョン情報が返されれば、インストールは成功です。
> **💡 ヒント:**
>
> システム全体で `dify` コマンドを使用してひな形ツールを実行したい場合は、このバイナリファイルの名前を `dify` に変更し、`/usr/local/bin` システムパスにコピーすることをお勧めします。
>
> 設定完了後、ターミナルで `dify version` コマンドを入力すると、バージョン情報が出力されます。
>
> <img src="https://assets-docs.dify.ai/2025/02/74e57a57c1ae1cc70f4a45084cbbb37e.png" alt="" />
### **2. Python 環境の初期化**
詳細については、[Python インストールチュートリアル](https://pythontest.com/python/installing-python-3-11/) を参照するか、LLM にバージョン ≥ 3.12 の Python 環境のインストールについて質問してください。
### 3. プラグインの開発
さまざまな種類のプラグイン開発の例については、以下の内容を参照してください。
- [ツールプラグイン開発ガイド](/plugin_dev_ja/0211-getting-started-dify-tool.ja) - Hello World 入門チュートリアル
- [モデルプラグイン開発ガイド](/plugin_dev_ja/0211-getting-started-new-model.ja) - 新しいモデルへの迅速な統合
- [Agent戦略プラグイン開発ガイド](/plugin_dev_ja/9433-agent-strategy-plugin.ja) - カスタム推論戦略の作成
- [拡張プラグイン開発ガイド](/plugin_dev_ja/9231-extension-plugin.ja) - Webhook を介した外部サービス統合の実装
- [プラグインのパッケージ化とリリース](/plugin_dev_ja/0321-release-overview.ja) - プラグインの公開
## 次のステップ
- [Dify プラグイン開発Hello World ガイド](/plugin_dev_ja/0211-getting-started-dify-tool.ja) - 最初のプラグイン開発を始める
- [プラグイン開発チートシート](/plugin_dev_ja/0131-cheatsheet.ja) - 一般的なコマンドと概念の理解
- [一般仕様定義](/plugin_dev_ja/0411-general-specifications.ja) - プラグインのメタデータ設定を学ぶ
{/*
Contributing Section
DO NOT edit this section!
It will be automatically generated by the script.
*/}
<CardGroup cols="2">
<Card
title="このページを編集する"
icon="pen-to-square"
href="https://github.com/langgenius/dify-docs-mintlify/edit/main/plugin_dev_ja/0221-initialize-development-tools.ja.mdx"
>
直接貢献することでドキュメントの改善にご協力ください
</Card>
<Card
title="問題を報告する"
icon="github"
href="https://github.com/langgenius/dify-docs-mintlify/issues/new?title=ドキュメントの問題%3A%20initialize-development-tools&body=%23%23%20問題の説明%0A%3C%21--%20発見した問題について簡単に説明してください%20--%3E%0A%0A%23%23%20ページリンク%0Ahttps%3A%2F%2Fgithub.com%2Flanggenius%2Fdify-docs-mintlify%2Fblob%2Fmain%2Fplugin_dev_ja%2F0221-initialize-development-tools.ja.mdx%0A%0A%23%23%20提案される変更%0A%3C%21--%20特定の変更案がある場合は、ここで説明してください%20--%3E%0A%0A%3C%21--%20ドキュメントの品質向上にご協力いただきありがとうございます%20--%3E"
>
エラーを見つけたり提案がありますか?お知らせください
</Card>
</CardGroup>