Skip to main content
difyctl is a standalone binary with no runtime dependencies. The install script detects your platform, downloads the matching build from Dify’s GitHub Releases, verifies its checksum, and puts the binary in place.
difyctl requires Dify 1.15.0 or later.

Install

1

Run the Installer

difyctl ships a build with each Dify release, and the installer fetches the latest by default.
Supported platforms: macOS and Linux, x64 and arm64.
curl -fsSL https://raw.githubusercontent.com/langgenius/dify/main/cli/scripts/install-cli.sh | sh
The script installs to ~/.local/bin/difyctl and tells you if that directory isn’t on your PATH.
To customize the install, set any of these environment variables on the install command.
VariableDescription
DIFY_VERSIONThe Dify release tag to install difyctl from. Defaults to the latest release; set it to your server’s release tag when your server isn’t on the latest.
DIFYCTL_VERSIONPin a specific difyctl build. Used only when DIFY_VERSION is unset.
DIFYCTL_PREFIXThe install directory (default ~/.local). The binary lands in <prefix>/bin.
For example:
curl -fsSL https://raw.githubusercontent.com/langgenius/dify/main/cli/scripts/install-cli.sh | DIFY_VERSION=<dify-version> sh
2

Verify the Install

difyctl version
You should see a Client: block with the version and platform.If you get command not found instead, the install directory isn’t on your PATH. Add it:
# add to ~/.zshrc or ~/.bashrc; running it inline only lasts until the session ends
export PATH="$HOME/.local/bin:$PATH"

Update

To update difyctl, re-run the install script; it replaces the binary in place. To move to a specific Dify version, set DIFY_VERSION as above.

Uninstall

rm ~/.local/bin/difyctl
To sign out before uninstalling, run difyctl auth logout.

Next Steps

With difyctl installed, head to the Quick Start to sign in and run your first app.
Last modified on June 25, 2026