# @go-task/cli 中文文档

规范地址：https://npmcn.com/package/%40go-task/cli/

版本：3\.54\.0
npm 元数据更新时间：2026-10-01T20:42:27.584Z
中文译文更新时间：2026-11-16T17:29:15.120Z
软件包许可：MIT

本文由上游 README 翻译，可能存在偏差，请结合原文核对 API、命令与配置。版权与许可归原作者所有。

原始 npm 页面：https://www.npmjs.com/package/%40go-task/cli
原文对照：https://npmcn.com/package/%40go-task/cli/?lang=original
项目主页：https://taskfile.dev/
源码仓库：https://github.com/go-task/task

## 关键信息（来自 npm 元数据）

- 包体积（解压后）：13.2 kB，6 个文件
- 模块格式：ES Module
- TypeScript 类型：未声明
- 运行依赖：3 个
- 首次发布：2022-09-29T23:56:30.112Z
- 最新版本发布：2026-10-01T20:42:27.206Z
- 近 30 天下载量：203609（2026-10-17 至 2026-11-15，npm 官方下载统计）
- 已发布版本数：60（近 12 个月 14 个）

## 中文简介

一个由Make所启发的快速,跨平台的构建工具,为现代工作流程所设计.

## 安装

```sh
npm install @go-task/cli
```

也可以使用：`pnpm add @go-task/cli`、`yarn add @go-task/cli`、`bun add @go-task/cli`

## README

[![](https://npmcn.com/package/%40go-task/cli/website/src/public/img/logo.svg)](https://taskfile.dev/)

# 任务:现代任务运行器

一个由Make所启发的快速,跨平台的构建工具,为现代工作流程所设计.

[安装](https://taskfile.dev/docs/installation) 二. 支助 [开始](https://taskfile.dev/docs/getting-started) 二. 支助 [文档](https://taskfile.dev/docs/guide) 二. 支助 [微博](https://twitter.com/taskfiledev) 二. 支助 [布鲁斯基](https://bsky.app/profile/taskfile.dev) 二. 支助 [马斯多登](https://fosstodon.org/@task) 二. 支助 [解析器](https://discord.gg/6TY36E39UK)

# 黄金赞助商

<table><tbody><tr><td align="center"><a href="https://devowl.io/" rel="nofollow noopener noreferrer"><img height="100px" src="https://npmcn.com/package/%40go-task/cli/website/src/public/img/devowl.io.svg" title="devowl.io" width="200px" loading="lazy" decoding="async" referrerpolicy="no-referrer"></a></td><td align="center"><a href="https://goodx.international/" rel="nofollow noopener noreferrer"><img height="80px" src="https://npmcn.com/package/%40go-task/cli/website/src/public/img/goodx.svg" title="GoodX" width="200px" loading="lazy" decoding="async" referrerpolicy="no-referrer"></a></td><td align="center"><a href="https://magic.dev/" rel="nofollow noopener noreferrer"><img height="100px" src="https://npmcn.com/package/%40go-task/cli/website/src/public/img/magic.png" title="Magic" width="200px" loading="lazy" decoding="async" referrerpolicy="no-referrer"></a></td></tr></tbody></table>

## 社区赞助者

<table><tbody><tr><td align="center"><a href="https://cloudsmith.com/" rel="nofollow noopener noreferrer"><img height="100px" src="https://npmcn.com/package/%40go-task/cli/website/src/public/img/cloudsmith.svg" title="Cloudsmith" width="200px" loading="lazy" decoding="async" referrerpolicy="no-referrer"></a></td><td align="center"><a href="https://jb.gg/OpenSource" rel="nofollow noopener noreferrer"><img alt="JetBrains logo" height="100px" src="https://npmcn.com/package/%40go-task/cli/website/src/public/img/jetbrains.svg" title="JetBrains" width="200px" loading="lazy" decoding="async" referrerpolicy="no-referrer"></a></td></tr><tr><td align="center">软件包托管服务 <a href="https://cloudsmith.com/" rel="nofollow noopener noreferrer">云匠师</a>。 。 。 .</td><td align="center">提供的工具 <a href="https://jb.gg/OpenSource" rel="nofollow noopener noreferrer">喷气管</a>。 。 。 .</td></tr></tbody></table>

## 常见问题

### @go-task/cli 是什么？

一个由Make所启发的快速,跨平台的构建工具,为现代工作流程所设计\.

### 如何安装 @go-task/cli？

在项目目录运行 npm install @go-task/cli，或使用 pnpm add / yarn add / bun add。它还提供命令行工具 task，可以用 npx task 直接运行。

### @go-task/cli 支持 TypeScript 吗？

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

### @go-task/cli 支持 ESM 还是 CommonJS？

以 ES Module 形式发布，推荐使用 import 引入。在 CommonJS 项目中，Node\.js 20\.19\+ / 22\.12\+ 可以直接 require\(\) 不含顶层 await 的 ES Module，更早的版本需要改用动态 import\(\)。

### @go-task/cli 可以商用吗？

@go-task/cli 使用 MIT 许可。宽松许可：允许商业使用、修改和再分发，通常只需在分发时保留原版权与许可声明。以上为概括，不构成法律意见，请以许可原文为准。

### @go-task/cli 的下载量有多少？

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

### @go-task/cli 还在维护吗？

最新版本 3\.54\.0 发布于 2026/10/02（1 个月前）；至今共发布 60 个版本，其中过去 12 个月发布了 14 个；首次发布于 2022/09/30。发布频率只是参考信号：功能稳定的工具可能很少需要更新，建议结合源码仓库的 issue 和提交记录判断。

