Files

cli-anything-dify-workflow

CLI-Anything wrapper for the open-source Dify workflow DSL editor.

This package does not reimplement the Dify workflow engine. It wraps the existing dify-workflow CLI so agents can discover and use it through the CLI-Anything ecosystem and CLI-Hub.

Install

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 this harness:

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

If the upstream project is published to PyPI later, you can replace the first command with a normal PyPI install.

Usage

cli-anything-dify-workflow guide
cli-anything-dify-workflow list-node-types
cli-anything-dify-workflow create -o workflow.yaml --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"

Notes

  • Most upstream commands support -j / --json-output.
  • The wrapper forwards commands to the installed upstream CLI.
  • 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.

Run Tests

python -m pytest cli_anything/dify_workflow/tests/ -v

Safety Notes

  • This harness only edits local Dify workflow DSL files.
  • Review generated YAML/JSON before importing into production Dify projects.