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

# Update or Uninstall difyctl

> Update difyctl when your Dify server moves to a new release, or remove it from a machine

## Update

> [!NOTE]
>
> If the server moves from Enterprise 3.13.x or earlier to 3.14.0 or later, the old build stops working with it. See [Upgrade Across Enterprise 3.14.0](https://enterprise-docs.dify.ai/en/3.14.x/develop/cli/upgrade-across-3-14.md) for what to redo and which commands changed.

Update `difyctl` whenever your server moves to a new Enterprise release:

1. Re-run the [install command](https://enterprise-docs.dify.ai/en/3.14.x/develop/cli/get-started.md#install) for the Dify version that release runs, with the same `DIFYCTL_PREFIX` if you used one. The new build replaces the old one in place.
2. Run `difyctl version` and check that your build's version matches the server's. On Enterprise 3.14.x, both read `1.20.0`, the Dify version the server runs.
3. If a coding agent uses `difyctl`, [reinstall](https://enterprise-docs.dify.ai/en/3.14.x/develop/cli/get-started.md#set-up-your-coding-agent) the difyctl skill. Otherwise the agent keeps following the old build's instructions.

`difyctl` fetches the server's new commands on its own. If `difyctl help` still shows the old list, run `difyctl refresh cache`.

## Uninstall

1. [Sign out](https://enterprise-docs.dify.ai/en/3.14.x/develop/cli/manage-sign-in.md#sign-out) while `difyctl` is still installed. Signing out ends your session on the server and deletes your saved token. Removing the binary does neither:

   ```bash theme={null}
   difyctl logout
   ```

2. Remove the binary:

   ```bash macOS / Linux theme={null}
   rm ~/.local/bin/difyctl
   ```

   ```powershell Windows theme={null}
   Remove-Item -Recurse "$env:LOCALAPPDATA\difyctl"
   ```

   If you installed with `DIFYCTL_PREFIX`, the binary is in `<prefix>/bin` instead.

3. To remove your settings too, delete the config folder:

   ```bash macOS theme={null}
   rm -rf ~/.config/difyctl
   ```

   ```bash Linux theme={null}
   rm -rf "${XDG_CONFIG_HOME:-$HOME/.config}/difyctl"
   ```

   ```powershell Windows theme={null}
   Remove-Item -Recurse "$env:APPDATA\difyctl"
   ```

   If you set `DIFY_CONFIG_DIR`, delete that folder instead.

4. If you installed the difyctl skill for a coding agent, delete the `difyctl` folder from [that agent's skills folder](https://enterprise-docs.dify.ai/en/3.14.x/develop/cli/get-started.md#set-up-your-coding-agent).


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