@adobe/aio-cli-plugin-app-dev

中文文档
2.3.0发布于 2026/04/24Apache-2.0近 30 天下载 2.2万

run a localhost dev server to serve actions locally

原始使用文档
文档目录7 节
  1. Commands
  2. aio app dev
  3. Overriding the hostname and port
  4. Visual Studio Code Webpack Debugging Support (Source Maps)
  5. TypeScript Support
  6. Contributing
  7. Licensing

aio-cli-plugin-app-dev

oclif Version Downloads/week Node.js CI License Codecov Coverage

  • This command is a new way of looking at local development. This uses the approach of a simulator, rather than an emulator.
  • Supports ESM, and TypeScript actions.
  • App Builder Debugging Docs

Commands

aio app dev

Run your App Builder app locally

USAGE
  $ aio app dev [-v] [--version] [-o] [-e <value>]

FLAGS
  -e, --extension=<value>  Run only a specific extension, this flag can only be specified once
  -o, --open               Open the default web browser after a successful run, only valid if your app has a front-end
  -v, --verbose            Verbose output
      --version            Show version

DESCRIPTION
  Run your App Builder app locally

See code: src/commands/app/dev/index.js

Overriding the hostname and port

By default the hostname will be localhost and the default port is 9080. You can override these values by setting these environment variables:

  1. SERVER_HOST
  2. SERVER_DEFAULT_PORT

The command will try to use the default port, if it is not available it will find an open port to use instead.

Visual Studio Code Webpack Debugging Support (Source Maps)

To enable step-by-step debugging in Visual Studio Code for your webpacked code, you will have to add source map support by adding a custom webpack config.

In the root of your project, add a webpack-config.js file:

module.exports = {
  devtool: 'inline-source-map'
}

TypeScript Support

Install these node modules in your app: npm install --save-dev ts-loader typescript

In the root of your project, add a webpack-config.js file:

module.exports = {
  devtool: 'inline-source-map',
  module: {
    rules: [
      {
        // includes, excludes are in tsconfig.json
        test: /\.ts?$/,
        exclude: /node_modules/,
        use: 'ts-loader'
      }
    ]
  }
}

In the root of your project, add a tsconfig.json file:

{
  "exclude": ["node_modules", "dist"],
  "compilerOptions": {
    "target": "ES6",
    "module": "ES6",
    "sourceMap": true
  }
}

There is a Visual Studio Code issue with TypeScript and inspecting variables by hovering your mouse over them:

https://github.com/microsoft/vscode/issues/221503

Contributing

Contributions are welcomed! Read the Contributing Guide for more information.

Licensing

This project is licensed under the Apache V2 License. See LICENSE for more information.

版本与发布记录

@adobe/aio-cli-plugin-app-dev 共发布 14 个版本,首次发布于 2024/05/09;过去 12 个月发布了 2 个版本。

版本发布日期距今
2.3.0latest2026/04/246 个月前
2.2.02026/02/248 个月前
2.1.22025/08/061.2 年前
2.1.12025/05/311.4 年前
2.1.02025/01/091.8 年前
2.0.12024/11/142 年前

关于 @adobe/aio-cli-plugin-app-dev 的常见问题

@adobe/aio-cli-plugin-app-dev 是什么?

run a localhost dev server to serve actions locally

如何安装 @adobe/aio-cli-plugin-app-dev?

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

@adobe/aio-cli-plugin-app-dev 支持 TypeScript 吗?

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

@adobe/aio-cli-plugin-app-dev 需要什么版本的 Node.js?

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

@adobe/aio-cli-plugin-app-dev 可以商用吗?

@adobe/aio-cli-plugin-app-dev 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@adobe/aio-cli-plugin-app-dev 的下载量有多少?

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

@adobe/aio-cli-plugin-app-dev 还在维护吗?

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