@dutodev/cli

中文文档
1.10.0发布于 2026/11/07MITES Module近 30 天下载 5654

Expose a local port at https://-.duto.page with one command.

原始使用文档
文档目录5 节
  1. Install
  2. Start
  3. Every tunnel of a project
  4. Commands
  5. Docs

duto

Put a local service on the internet at a stable HTTPS URL, with one command:

duto 3000 --name web     # https://web-<user>.duto.page → localhost:3000

The URL stays the same from one session to the next, so you set it once as a webhook endpoint or an OAuth callback. Duto is free for now and invite only; create your account at duto.dev from an invite link.

Install

npm i -g @dutodev/cli

Needs Node 18 or later, on macOS, Linux or Windows.

Start

duto login                 # once per machine; opens your browser
duto 3000                  # https://<user>.duto.page
duto 3000 --name web       # https://web-<user>.duto.page, the same every time

Every tunnel of a project

Create duto.yml at the root of the project and run duto:

tunnels:
  web: 3000
  backend: 8000
  webhook: 4000

All tunnels open together, in one screen. Commit the file and everyone on the team gets their own addresses from it.

Commands

CommandWhat it does
dutoOpen the tunnels in duto.yml
duto <port>Open a tunnel to localhost:<port>
duto http <port>Same, for people coming from ngrok
duto loginLog in through the browser
duto login <token>Log in with a token from the Machines page, for CI and servers
duto statusShow your account and live tunnels
duto mcpRun the MCP server for AI agents
duto logoutLog this machine out

Docs

版本与发布记录

@dutodev/cli 共发布 31 个版本,首次发布于 2026/11/01;过去 12 个月发布了 31 个版本。

版本发布日期距今
1.10.0latest2026/11/076 天前
1.9.02026/11/067 天前
1.8.12026/11/067 天前
1.8.02026/11/058 天前
1.7.02026/11/058 天前
1.6.12026/11/058 天前

关于 @dutodev/cli 的常见问题

@dutodev/cli 是什么?

Expose a local port at https://-.duto.page with one command.

如何安装 @dutodev/cli?

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

@dutodev/cli 支持 TypeScript 吗?

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

@dutodev/cli 支持 ESM 还是 CommonJS?

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

@dutodev/cli 需要什么版本的 Node.js?

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

@dutodev/cli 可以商用吗?

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

@dutodev/cli 的下载量有多少?

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

@dutodev/cli 还在维护吗?

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