@dagucloud/dagu

中文文档
2.26.0发布于 2026/11/08GPL-3.0构建来源已验证近 30 天下载 4308

A powerful Workflow Orchestration Engine with simple declarative YAML API. Zero-dependency, single binary for Linux, macOS, and Windows.

原始使用文档
文档目录8 节
  1. Installation
  2. Usage
  3. Command Line
  4. Programmatic Usage
  5. Supported Platforms
  6. Features
  7. Documentation
  8. License

@dagucloud/dagu

A powerful Workflow Orchestration Engine with simple declarative YAML API

npm version License: GPL v3

Installation

npm install -g --ignore-scripts=false @dagucloud/dagu

--ignore-scripts=false ensures npm runs the postinstall script that downloads the Dagu binary.

Or add to your project:

npm install --ignore-scripts=false @dagucloud/dagu

Usage

Command Line

After installation, the dagu command will be available:

# Start the web UI and scheduler
dagu start-all

# Run a workflow
dagu start my-workflow.yaml

# Check workflow status
dagu status my-workflow.yaml

Programmatic Usage

const { execute, getDaguPath } = require('@dagucloud/dagu');

// Get path to the binary
const daguPath = getDaguPath();

// Execute dagu commands
const child = execute(['start', 'workflow.yaml']);

// Or use async/await
const { executeAsync } = require('@dagucloud/dagu');

async function runWorkflow() {
  const result = await executeAsync(['start', 'workflow.yaml']);
  console.log('Exit code:', result.code);
  console.log('Output:', result.stdout);
}

Supported Platforms

This package provides pre-built binaries for:

  • Linux: x64, arm64, arm (v6/v7), ia32, ppc64le, s390x
  • macOS: x64 (Intel), arm64 (Apple Silicon)
  • Windows: x64, ia32, arm64
  • FreeBSD: x64, arm64
  • OpenBSD: x64, arm64

If your platform is not supported, please build from source: https://github.com/dagucloud/dagu#building-from-source

Features

  • Zero Dependencies - Single binary, no runtime requirements
  • Declarative YAML - Define workflows in simple YAML format
  • Web UI - Beautiful dashboard for monitoring and management
  • Powerful Scheduling - Cron expressions, dependencies, and complex workflows
  • Language Agnostic - Run any command, script, or executable

Documentation

For detailed documentation, visit: https://github.com/dagucloud/dagu

License

GNU General Public License v3.0

版本与发布记录

@dagucloud/dagu 共发布 75 个版本,首次发布于 2026/05/03;过去 12 个月发布了 75 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
2.26.0latest2026/11/083 天前
2.25.82026/11/065 天前
2.25.72026/11/055 天前
2.25.42026/11/056 天前
2.25.32026/11/046 天前
2.25.22026/11/038 天前

关于 @dagucloud/dagu 的常见问题

@dagucloud/dagu 是什么?

A powerful Workflow Orchestration Engine with simple declarative YAML API. Zero-dependency, single binary for Linux, macOS, and Windows.

如何安装 @dagucloud/dagu?

在项目目录运行 npm install @dagucloud/dagu,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 dagu,可以用 npx dagu 直接运行。

@dagucloud/dagu 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/dagucloud__dagu 是否存在。

@dagucloud/dagu 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=14.0.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@dagucloud/dagu 可以商用吗?

@dagucloud/dagu 使用 GPL-3.0 许可。强 Copyleft:分发包含该代码的软件时,整个作品需以 GPL-3.0 兼容许可开源,并附带专利与反锁定条款。仅内部使用不触发此义务。以上为概括,不构成法律意见,请以许可原文为准。

@dagucloud/dagu 的下载量有多少?

根据 npm 官方下载统计,@dagucloud/dagu 在 2026/10/11 – 2026/11/09 这 30 天内被下载 4,308 次,日均约 144 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@dagucloud/dagu 还在维护吗?

最新版本 2.26.0 发布于 2026/11/08(3 天前);至今共发布 75 个版本,其中过去 12 个月发布了 75 个;首次发布于 2026/05/03。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。