diff --git a/en/plugins/quick-start/develop-plugins/initialize-development-tools.mdx b/en/plugins/quick-start/develop-plugins/initialize-development-tools.mdx index b1a0d454..3356ddfc 100644 --- a/en/plugins/quick-start/develop-plugins/initialize-development-tools.mdx +++ b/en/plugins/quick-start/develop-plugins/initialize-development-tools.mdx @@ -4,13 +4,13 @@ title: Install Development Tools Before start to develop Dify plugins, please prepare the following prerequisites: * [Dify Plugin CLI tool](https://github.com/langgenius/dify-plugin-daemon?tab=readme-ov-file#cli) -* Python 3.12+ +* [Python 3.12+](https://docs.python.org/3.12/using/index.html) -### **1. Install Dify Plugin CLI Tool** +## **1. Install Dify Plugin CLI Tool** The Dify Plugin CLI Tool can be installed either with from Homebrew (on Linux and macOS) or with the standalone binary executable file (on Windows, Linux and macOS). -#### Install with Homebrew +### Install with Homebrew For the macOS and Linux users, installing Dify Plugin CLI with [Homebrew](https://brew.sh/) is recommended. @@ -32,9 +32,9 @@ To upgrade the Dify Plugin CLI tool, run the following command: brew upgrade dify ``` -#### Install with binary executable +### Install with binary executable -1. Download the binary executable +**Download the binary executable:** On the asset list of the release page of [Dify Plugin CLI Tool](https://github.com/langgenius/dify-plugin-daemon/releases), choose and download the binary executable for the OS system (Linux / macOS / Windows) and the chip architecture (`amd64` for x86 chips / `arm64` for ARM or Apple's M chips). @@ -51,19 +51,13 @@ To check the installation, run `./dify version` and a version code should be dis > If the system shows an "Apple cannot verify" error, go to **Settings → Privacy & Security → Security**, and click the "Open Anyway" button. - **Tips:** To use `dify` command globally system-wide, it's recommended to rename the binary file to `dify` and copy it to the `/usr/local/bin` system path. -### **2. Install Python** - -Python version 3.12 or higher is required. For detailed instructions, please refer to the official [Python installation](https://docs.python.org/3.12/using/index.html) guide. - - -### 3. **Develop plugins** +## 2. **Develop plugins** Please refer to the following content for examples of different types of plugin development. diff --git a/ja-jp/plugins/quick-start/develop-plugins/initialize-development-tools.mdx b/ja-jp/plugins/quick-start/develop-plugins/initialize-development-tools.mdx index 58c7d27e..c8de8d64 100644 --- a/ja-jp/plugins/quick-start/develop-plugins/initialize-development-tools.mdx +++ b/ja-jp/plugins/quick-start/develop-plugins/initialize-development-tools.mdx @@ -4,13 +4,13 @@ title: 開発環境のセットアップ Difyプラグインの開発を始める前に、以下の前提条件を準備してください: * [DifyプラグインCLIツール](https://github.com/langgenius/dify-plugin-daemon?tab=readme-ov-file#cli) -* Python 3.12+ +* [Python 3.12+](https://docs.python.org/3.12/using/index.html) -### **1. DifyプラグインCLIツールのインストール** +## **1. DifyプラグインCLIツールのインストール** DifyプラグインCLIツールは、Homebrew(LinuxおよびmacOS用)またはスタンドアロンのバイナリ実行ファイル(Windows、Linux、macOS用)でインストールできます。 -#### Homebrewでのインストール +### Homebrewでのインストール macOSおよびLinuxユーザーには、[Homebrew](https://brew.sh/)を使用してDifyプラグインCLIをインストールすることをお勧めします。 @@ -32,9 +32,9 @@ DifyプラグインCLIツールをアップグレードするには、次のコ brew upgrade dify ``` -#### バイナリ実行ファイルでのインストール +### バイナリ実行ファイルでのインストール -1. バイナリ実行ファイルをダウンロード +**バイナリ実行ファイルをダウンロード:** [DifyプラグインCLIツールのリリースページ](https://github.com/langgenius/dify-plugin-daemon/releases)のアセットリストから、OSシステム(Linux / macOS / Windows)とチップアーキテクチャ(`amd64`はx86チップ用、`arm64`はARMまたはAppleのMチップ用)に適したバイナリ実行ファイルを選択してダウンロードします。 @@ -56,11 +56,7 @@ mv ./dify-plugin-darwin-arm64 ./dify `dify`コマンドをグローバルにシステム全体で使用するには、バイナリファイルの名前を`dify`に変更し、`/usr/local/bin`システムパスにコピーすることを推奨します。 -### **2. Pythonのインストール** - -Python 3.12以上のバージョンが必要です。詳細な手順については、公式の[Pythonインストールガイド](https://docs.python.org/3.12/using/index.html)を参照してください。 - -### **3. プラグインの開発** +## **2. プラグインの開発** さまざまな種類のプラグイン開発の例については、以下のコンテンツを参照してください。 diff --git a/zh-hans/plugins/quick-start/develop-plugins/initialize-development-tools.mdx b/zh-hans/plugins/quick-start/develop-plugins/initialize-development-tools.mdx index dbd6ff08..40f3216d 100644 --- a/zh-hans/plugins/quick-start/develop-plugins/initialize-development-tools.mdx +++ b/zh-hans/plugins/quick-start/develop-plugins/initialize-development-tools.mdx @@ -3,14 +3,15 @@ title: 安装插件开发工具 --- 在开始开发 Dify 插件之前,请准备以下先决条件: -* [Dify 插件 CLI 工具](https://github.com/langgenius/dify-plugin-daemon?tab=readme-ov-file#cli) -* Python 3.12+ -### **1. 安装 Dify 插件 CLI 工具** +* [Dify 插件 CLI 工具](https://github.com/langgenius/dify-plugin-daemon?tab=readme-ov-file#cli) +* [Python 3.12+](https://docs.python.org/3.12/using/index.html) + +## **1. 安装 Dify 插件 CLI 工具** Dify 插件 CLI 工具可以通过 Homebrew(在 Linux 和 macOS 上)或独立的二进制可执行文件(在 Windows、Linux 和 macOS 上)进行安装。 -#### 通过 Homebrew 安装 +### 通过 Homebrew 安装 对于 macOS 和 Linux 用户,建议使用 [Homebrew](https://brew.sh/) 安装 Dify 插件 CLI。 @@ -32,9 +33,9 @@ dify version brew upgrade dify ``` -#### 通过二进制可执行文件安装 +### 通过二进制可执行文件安装 -1. 下载二进制可执行文件 +**下载二进制可执行文件:** 在 [Dify 插件 CLI 工具](https://github.com/langgenius/dify-plugin-daemon/releases) 的发布页面的资产列表中,选择并下载适合操作系统(Linux / macOS / Windows)和芯片架构(`amd64` 为 x86 芯片 / `arm64` 为 ARM 或 Apple 的 M 芯片)的二进制可执行文件。 @@ -56,11 +57,7 @@ mv ./dify-plugin-darwin-arm64 ./dify 为了在系统范围内全局使用 `dify` 命令,建议将二进制文件重命名为 `dify` 并复制到 `/usr/local/bin` 系统路径中。 -### **2. 安装 Python** - -需要 Python 版本 3.12 或更高版本。有关详细说明,请参考官方 [Python 安装](https://docs.python.org/3.12/using/index.html) 指南。 - -### 3. **开发插件** +## 2. **开发插件** 请参考以下内容以获得不同类型插件开发的示例。