> ## 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.

# 概述

> 你和编码 Agent 都能用 difyctl 在终端中操作 Dify 应用

`difyctl` 是 Dify 的命令行界面（CLI）。有了它，不用打开浏览器，在终端里就能操作 Dify 应用，同样的工作还能交给编码 Agent、脚本或 CI 任务去做。

准备工作只需做一次：安装 difyctl 并登录，再为编码 Agent 配置 `difyctl` Skill。之后让 Agent 去构建、运行或更新你的应用即可。

> [!TIP]
>
> 要在你自己的产品中接入应用，改用 [服务 API](https://enterprise-docs.dify.ai/zh/3.14.x/develop/api/guides/get-started.md)。

开始使用：

* 初次使用 `difyctl`：
  * 有 Dify 账户：按 [快速开始](https://enterprise-docs.dify.ai/zh/3.14.x/develop/cli/get-started.md) 操作。
  * 通过 SSO 打开 Dify Web 应用，但没有 Dify 账户：按 [以外部 SSO 用户身份使用 `difyctl`](https://enterprise-docs.dify.ai/zh/3.14.x/develop/cli/external-sso-users) 操作。
* 在服务器升级到 Enterprise 3.14.0 之前就用过 `difyctl`：先从 [Enterprise 3.14.0 升级指南](https://enterprise-docs.dify.ai/zh/3.14.x/develop/cli/upgrade-across-3-14.md) 开始。
* 服务器运行 Enterprise 3.13.x 或更早版本：在版本菜单中切换到该版本的文档。


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