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

# Command Index

> difyctl commands, grouped by job, with what each one does and what it requires

To see a command's flags, run `difyctl help <command>`.

In a command, `<mode>` is the app's type. See [Find Your Apps](https://enterprise-docs.dify.ai/en/3.14.x/develop/cli/run-apps.md#find-your-apps) for each app type's `mode`.

## Sign-In and Account

| Command | What it does | Permission | Requires |
| :- | :- | :- | :- |
| `login` | Sign in through your browser | | |
| `logout` | Sign out, ending this machine's session on the server | | |
| `describe account` | Show the account you're signed in as | | |
| `get account session` | List your sign-in sessions | | |
| `delete account session` | End one of your sessions | | |
| `delete account current_session` | End the session you're running it with | | |

## Workspaces and Members

| Command | What it does | Permission | Requires |
| :- | :- | :- | :- |
| `get workspace` | List your workspaces and their IDs | | |
| `describe workspace` | Show details of the workspace `difyctl` is in | | |
| `use workspace` | Switch `difyctl` to another of your workspaces | | |
| `get workspace member` | List your workspace's members | | |
| `invite workspace member` | Invite someone by email | Manage members | |
| `set workspace member_role` | Change a member's role | Manage roles and permission sets | |
| `delete workspace member` | Remove a member | Manage members | |

## Find and Inspect Apps

| Command | What it does | Permission | Requires |
| :- | :- | :- | :- |
| `get console_app` | List your apps with Service API access on. Filter by name or type | | |
| `describe console_app` | Show an app's details and the inputs it takes | View app orchestration | Service API access on |
| `describe app_info <mode>` | Show an app's name, description, and icon | View app orchestration | |
| `get console_app external` | List the apps your SSO sign-in can run. Filter by name or type | | An [SSO sign-in](https://enterprise-docs.dify.ai/en/3.14.x/develop/cli/external-sso-users.md) |
| `describe console_app external` | Show an app's details and the inputs it takes | | An [SSO sign-in](https://enterprise-docs.dify.ai/en/3.14.x/develop/cli/external-sso-users.md), Service API access on |

## Run Apps

| Command | What it does | Permission | Requires |
| :- | :- | :- | :- |
| `run console_app <mode>` | Run an app and get its result | | Service API access on |
| `upload console_app file` | Upload a file to pass to a later run | | Service API access on |
| `stop run` | Stop a run that's still going or paused at a Human Input form | | Service API access on, Workflow and Chatflow apps only |
| `stop task` | Stop a reply that's still streaming | | Service API access on; Chatbot, legacy Agent, and Text Generator apps only |
| `get run event` | Follow a workflow run's events | | Service API access on |
| `describe run form` | Show the Human Input form a run paused at | | Service API access on |
| `submit run form` | Answer a Human Input form | | Service API access on |
| `get run` | List an app's runs, newest first | Create apps | Service API access on, Workflow and Chatflow apps only |
| `describe run` | Show one run's inputs, outputs, error, and timing | Create apps | Service API access on, Workflow and Chatflow apps only |
| `get run node` | Show each node's step in a run, to find the one that failed | Create apps | Service API access on, Workflow and Chatflow apps only |

## Build and Change Apps

| Command | What it does | Permission | Requires |
| :- | :- | :- | :- |
| `create console_app <mode>` | Create a blank Workflow app, or a Chatflow app with a starter draft | Create apps | |
| `set app_info <mode>` | Change an app's name, description, or icon | Edit app information and orchestrate app | |
| `import console_app dsl` | Create or update an app from a DSL file | Create apps; Import and export apps (when updating an app) | |
| `check console_app dsl` | Check a DSL file for problems without importing it | Create apps | |
| `confirm console_app dsl_import` | Finish an import waiting for confirmation, such as a file from a newer Dify version | Create apps; Import and export apps (when updating an app) | |
| `export console_app dsl` | Export an app's DSL | Import and export apps | Service API access on |
| `check console_app dependency` | List the integrations an app needs that your workspace doesn't have | Import and export apps | Service API access on |
| `get console_app env` | List the draft's environment variables, with secret values masked | View app orchestration | Service API access on, Workflow and Chatflow apps only |
| `set console_app env` | Add or change an environment variable | Edit app information and orchestrate app | Service API access on, Workflow and Chatflow apps only |
| `delete console_app env` | Remove an environment variable | Edit app information and orchestrate app | Service API access on, Workflow and Chatflow apps only |
| `test console_app <mode>` | Test-run the draft. A run that pauses at a Human Input form can't be continued from `difyctl` | Test and use app | Service API access on |
| `test node <mode>` | Test one node of the draft | Test and use app | Service API access on |
| `get node_type` | List the node types your server can run | | |
| `describe node_type` | Show a node type's settings and defaults | | |
| `get knowledge_base` | List the knowledge bases you can use in a workflow | | |

## Publish and Roll Back

| Command | What it does | Permission | Requires |
| :- | :- | :- | :- |
| `check console_app release` | Check that the draft is ready to publish, and see what changed | View app orchestration | Service API access on, Workflow and Chatflow apps only |
| `publish console_app` | Publish the draft | Publish and manage app versions | Service API access on, Workflow and Chatflow apps only |
| `get console_app version` | List published versions, newest first | View app orchestration | Service API access on, Workflow and Chatflow apps only |
| `restore console_app version` | Copy a published version into the draft. Publish to make it live | Publish and manage app versions | Service API access on, Workflow and Chatflow apps only |

## Web App and Service API

| Command | What it does | Permission | Requires |
| :- | :- | :- | :- |
| `describe webapp <mode>` | Show whether the app's web app is on, its URL, and its page settings | View app orchestration | |
| `set webapp <mode>` | Change the web app's settings | Publish and manage app versions | |
| `reset webapp` | Give the web app a new URL. The old URL stops working | Publish and manage app versions | |
| `describe service_api` | Show whether the app's Service API access is on, and its base URL | Publish and manage app versions | |
| `set service_api` | Turn the app's Service API access on or off | Publish and manage app versions | |
| `describe webapp_access` | Show who can open the app's web app | View and manage access permissions | |
| `set webapp_access` | Set who can open the app's web app: anyone with the link, all platform members, or authenticated external users. To choose specific members, use the Dify console | View and manage access permissions | |

## Integrations

| Command | What it does | Permission | Requires |
| :- | :- | :- | :- |
| `get marketplace plugin` | Search the Marketplace for integrations | | |
| `get plugin` | List the integrations installed in your workspace | | |
| `install plugin` | Install integrations from the Marketplace. The install finishes in the background | Install and update plugins | An integration [the deployment allows](https://enterprise-docs.dify.ai/en/3.14.x/administer/plugins-management.md) |
| `describe plugin task` | Check an install's progress | | |
| `delete plugin` | Uninstall an integration | Delete plugins | |
| `get tool` | List the tools a workflow can use | | |
| `describe tool_provider` | Show a tool provider's credential form and saved credentials | | |
| `create tool_provider credential` | Save an API key for a tool provider | Add credentials | |
| `set tool_provider credential` | Replace a saved tool provider credential | Edit and delete credentials | |
| `get model` | List models, and whether each can be used now | | |
| `describe model_provider` | Show a model provider's credential form and saved credentials | | |
| `create model_provider credential` | Save a credential for a model provider | Add credentials | |
| `set model_provider credential` | Replace a saved model provider credential | Edit and delete credentials | |
| `create model credential` | Save a credential for one model, such as one served by Ollama | Add credentials | |
| `set model credential` | Replace a saved credential for one model | Edit and delete credentials | |

## Workspace Skills

These commands manage your workspace's skills. To install the `difyctl` skill into your coding agent instead, run `install skills`.

| Command | What it does | Permission | Requires |
| :- | :- | :- | :- |
| `get skill` | List your workspace's skills. Filter by keyword, by tags, or both | View Skill | |
| `describe skill` | Show a skill's details, including its latest version and its `draft_hash` | View Skill | |
| `get skill version` | List a skill's published versions | View Skill | |
| `export skill` | Download a skill as a zip file: its draft, or a published version with `--version-id` from `get skill version` | View Skill | |
| `import skill` | Create a skill from a folder, or pass `--skill-id` to replace an existing skill's draft with the folder. Draft files the folder doesn't have are removed. To guard against overwriting changes made to the skill since you read it, add `--draft-hash` from `describe skill` | Edit Skill | |
| `publish skill` | Publish a skill's draft as a new version | Publish Skill | |

## Local Settings and Help

| Command | What it does | Permission | Requires |
| :- | :- | :- | :- |
| `help` | Find commands and see their flags | | |
| `version` | Show the `difyctl` and server versions | | |
| `get config`, `set config`, `unset config` | Show, change, or reset how long `difyctl` waits for the server | | |
| `refresh cache` | Fetch your server's command list again, such as after a server upgrade | | |
| `delete cache` | Delete the cached command list | | |
| `install skills` | Install the `difyctl` skill into a coding agent's skills folder | | |


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