New to Claude Skills? Learn how to install them →

Dhkuds on GitHub

Dify Workflow CLI

Free

Manage Dify workflows efficiently via command line.

by hkuds46.9k stars on hkuds/cli-anything
3 views
Updated Aug 3, 2026
Get this skill

Free · Opens the source repo

What Dify Workflow CLI does

The Dify Workflow CLI skill provides a robust command-line interface for managing Dify workflow files. This skill acts as a wrapper around the Dify workflow DSL CLI, allowing users to create, inspect, validate, edit, and export workflow files seamlessly. By utilizing this skill, developers and designers can streamline their workflow management processes, making it easier to handle complex tasks without needing to navigate through a graphical interface.

To get started, users must first install the upstream Dify workflow CLI, followed by the CLI-Anything harness. Once set up, the skill offers a variety of commands such as create, inspect, validate, and edit, enabling users to manipulate workflow files directly from the command line. This is particularly useful for those who prefer working in terminal environments or need to automate their workflow management tasks.

The skill supports JSON output for various commands, enhancing the ability to integrate with other tools or scripts. It also allows for local file edits on Dify YAML/JSON DSL files, making it a practical choice for developers looking to maintain version control and track changes effectively. The command groups provided cover a wide range of functionalities, ensuring that users have the necessary tools at their disposal to manage their workflows comprehensively.

This skill is ideal for developers and designers who frequently work with Dify workflows and prefer command-line interfaces for their flexibility and efficiency. It is particularly beneficial for teams that require quick iterations and modifications to their workflow files without the overhead of a GUI.

When to use it

Use this skill when you need to create, edit, or validate Dify workflows quickly and efficiently from the command line.

When not to use it

This skill may not be suitable for users who prefer graphical interfaces or need extensive support for workflows outside of Dify.

What you can build with it

Creating a New Workflow

Use the `create` command to generate a new Dify workflow file quickly, specifying templates and output formats.

Validating Workflow Files

Run the `validate` command to check the correctness of your Dify workflow files before deployment.

Editing Existing Workflows

Utilize the `edit` command to modify nodes in your workflow, allowing for easy updates and adjustments.

How to install Dify Workflow CLI

View source

1. Install with the skills CLI

npx skills add hkuds/cli-anything/skills --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by hkuds

Dify Workflow CLI Skill

Installation

Install the upstream Dify workflow CLI first:

python -m pip install "dify-ai-workflow-tools @ git+https://github.com/Akabane71/dify-workflow-cli.git@main"

Then install the CLI-Anything harness:

pip install git+https://github.com/HKUDS/CLI-Anything.git#subdirectory=dify-workflow/agent-harness

Usage

The harness forwards to the upstream dify-workflow CLI.

cli-anything-dify-workflow guide
cli-anything-dify-workflow list-node-types
cli-anything-dify-workflow create -o workflow.yaml --mode workflow --template llm
cli-anything-dify-workflow inspect workflow.yaml -j
cli-anything-dify-workflow validate workflow.yaml -j
cli-anything-dify-workflow edit add-node -f workflow.yaml --type code --title "Process"
cli-anything-dify-workflow config set-model -f app.yaml --provider openai --name gpt-4o

Command Groups

  • guide
  • list-node-types
  • create
  • inspect
  • validate
  • checklist
  • edit add-node|remove-node|update-node|add-edge|remove-edge|set-title
  • config set-model|set-prompt|add-variable|set-opening|add-question|add-tool|remove-tool
  • export
  • import
  • diff
  • layout

Agent Guidance

  • Prefer -j / --json-output on upstream commands when available.
  • The harness itself is a wrapper. Real workflow logic is provided by the upstream project.
  • If dify-workflow is not on PATH but the dify_workflow Python package is installed, the wrapper falls back to python -m dify_workflow.cli.
  • All operations are local file edits on Dify YAML/JSON DSL files.

Frequently asked questions about Dify Workflow CLI

Similar skills