@adobe/aio-cli

中文文档
11.2.0发布于 2026/10/12Apache-2.0CommonJS近 30 天下载 2.5万

Adobe I/O 广泛CLI








中文使用文档
文档目录26 节
  1. aio app
  2. aio app add
  3. aio app add action
  4. aio app add actions
  5. aio app add ci
  6. aio app add db
  7. aio app add event
  8. aio app add events
  9. aio app add ext
  10. aio app add extension
  11. aio app add extensions
  12. aio app add service
  13. aio app add services
  14. aio app add web-assets
  15. aio app build
  16. aio app clean
  17. aio app config
  18. aio app config get
  19. aio app config get lf
  20. aio app config get lf errors
  21. aio app config get log-forwarding
  22. aio app config get log-forwarding errors
  23. aio app config set
  24. aio app config set lf
  25. aio app config set log-forwarding
  26. aio app create [PATH]

a-克力

Adobe I/O 广泛CLI

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

卫生

Aio-cli及其插件和模块的健康徽章

模块版本下载构建状态覆盖范围问题调取请求
@adobe/aio-cli (英语)VersionDownloads/weekNode.js CICodecov CoverageGithub IssuesGithub Pull Requests
@adobe/aio-cli-plugin-configVersionDownloads/weekNode.js CICodecov CoverageGithub IssuesGithub Pull Requests
@adobe/aio-cli-plugin-收音机VersionDownloads/weekNode.js CICodecov CoverageGithub IssuesGithub Pull Requests
@adobe/aio-cli-plugin-runtime (英语)VersionDownloads/weekNode.js CICodecov CoverageGithub IssuesGithub Pull Requests
@adobe/aio-cli-plugin-app (英语)VersionDownloads/weekNode.js CICodecov CoverageGithub IssuesGithub Pull Requests
@adobe/aio-cli-plugin-app-templates (英语)VersionDownloads/weekNode.js CICodecov CoverageGithub IssuesGithub Pull Requests
@adobe/aio-cli-plugin-auth (英语)VersionDownloads/weekNode.js CICodecov CoverageGithub IssuesGithub Pull Requests
@adobe/aio-cli-plugin-证书VersionDownloads/weekNode.js CICodecov CoverageGithub IssuesGithub Pull Requests
@adobe/aio-cli-plugin-info (英语)VersionDownloads/weekNode.js CICodecov CoverageGithub IssuesGithub Pull Requests
@adobe/aio-cli-plugin活动VersionDownloads/weekNode.js CICodecov CoverageGithub IssuesGithub Pull Requests
@adobe/aio-cli-plugin-遥测VersionDownloads/weekNode.js CICodecov CoverageGithub IssuesGithub Pull Requests
@adobe/ generator- aio- appVersionDownloads/weekNode.js CICodecov CoverageGithub IssuesGithub Pull Requests
@adobe/generator-aio-收音机VersionDownloads/weekNode.js CICodecov CoverageGithub IssuesGithub Pull Requests

开始

见 Adobe 开发者 App 构建文件

技术要求

见 应用程序构建器 Setting up Your Environment 医生

代理支持

设定这些环境变量, 以使用代理( 区分大小写 ) :

  1. HTTP_PROXY
  2. HTTPS_PROXY

适当的代理将分别用于代理http/https urls.

如果您的代理需要基本的认证, 请将用户名和密码嵌入url本身 。 例如,如果您的服务器是 https://example.com 用户名 user 密码是 passwordurl应该看起来像这样:

https://user:[email protected]

如果您的用户名或密码中包含非缩写字符, 它们 必须 以url编码.

您可以通过运行来验证代理信息是否正确设置 :

aio info

使用量

$ npm install -g @adobe/aio-cli
$ aio COMMAND
running command...
$ aio (--version|-v)
@adobe/aio-cli/11.2.0 linux-x64 node-v22.23.3
$ aio --help [COMMAND]
USAGE
  $ aio COMMAND
...

图标

aio app

创建、运行、测试和部署 Adobe I/O Apps

USAGE
  $ aio app [-v] [--version] [--config-validation]

FLAGS
  -v, --verbose                 Verbose output
      --[no-]config-validation  [default: true] Validate the app configuration file(s) before continuing.
      --version                 Show version

DESCRIPTION
  Create, run, test, and deploy Adobe I/O Apps

参见代码 : @adobe/aio-cli-plugin-app (英语)

aio app add

在现有 Adobe I/O App 中添加新组件

USAGE
  $ aio app add [-v] [--version] [--config-validation]

FLAGS
  -v, --verbose                 Verbose output
      --[no-]config-validation  [default: true] Validate the app configuration file(s) before continuing.
      --version                 Show version

DESCRIPTION
  Add a new component to an existing Adobe I/O App

参见代码 : @adobe/aio-cli-plugin-app (英语)

aio app add action

添加新动作

USAGE
  $ aio app add action [-y] [-e <value>] [--install] [-v] [--version] [--config-validation]

FLAGS
  -e, --extension=<value>       Add actions to a specific extension
  -v, --verbose                 Verbose output
  -y, --yes                     Skip questions, and use all default values
      --[no-]config-validation  [default: true] Validate the app configuration file(s) before continuing.
      --[no-]install            [default: true] Run npm installation after files are created
      --version                 Show version

DESCRIPTION
  Add new actions


ALIASES
  $ aio app add actions

参见代码 : @adobe/aio-cli-plugin-app (英语)

aio app add actions

添加新动作

USAGE
  $ aio app add actions [-y] [-e <value>] [--install] [-v] [--version] [--config-validation]

FLAGS
  -e, --extension=<value>       Add actions to a specific extension
  -v, --verbose                 Verbose output
  -y, --yes                     Skip questions, and use all default values
      --[no-]config-validation  [default: true] Validate the app configuration file(s) before continuing.
      --[no-]install            [default: true] Run npm installation after files are created
      --version                 Show version

DESCRIPTION
  Add new actions


ALIASES
  $ aio app add actions

aio app add ci

添加 CI 文件

USAGE
  $ aio app add ci [-v] [--version] [--config-validation]

FLAGS
  -v, --verbose                 Verbose output
      --[no-]config-validation  [default: true] Validate the app configuration file(s) before continuing.
      --version                 Show version

DESCRIPTION
  Add CI files

参见代码 : @adobe/aio-cli-plugin-app (英语)

aio app add db

为您的 App 构建程序提供新数据库

USAGE
  $ aio app add db [--json] [--region <value>] [-y]

FLAGS
  -y, --yes  Skip confirmation prompt and provision automatically

GLOBAL FLAGS
  --json            Format output as json.
  --region=<value>  Database region. Defaults to 'AIO_DB_REGION' environment variable or 'amer' if neither is set. Any
                    database region set in 'app.config.yaml' takes precedence over all of these.
                    <options: amer|emea|apac|aus>

DESCRIPTION
  Provision a new database for your App Builder application

EXAMPLES
  $ aio app add db

  $ aio app add db --region amer

  $ aio app add db --json

  $ aio app add db --yes

aio app add event

添加新的 Adobe I/O 事件动作

USAGE
  $ aio app add event [-y] [-e <value>] [--install] [-v] [--version] [--config-validation]

FLAGS
  -e, --extension=<value>       Add events to a specific extension
  -v, --verbose                 Verbose output
  -y, --yes                     Skip questions, and use all default values
      --[no-]config-validation  [default: true] Validate the app configuration file(s) before continuing.
      --[no-]install            [default: true] Run npm installation after files are created
      --version                 Show version

DESCRIPTION
  Add a new Adobe I/O Events action


ALIASES
  $ aio app add events

参见代码 : @adobe/aio-cli-plugin-app (英语)

aio app add events

添加新的 Adobe I/O 事件动作

USAGE
  $ aio app add events [-y] [-e <value>] [--install] [-v] [--version] [--config-validation]

FLAGS
  -e, --extension=<value>       Add events to a specific extension
  -v, --verbose                 Verbose output
  -y, --yes                     Skip questions, and use all default values
      --[no-]config-validation  [default: true] Validate the app configuration file(s) before continuing.
      --[no-]install            [default: true] Run npm installation after files are created
      --version                 Show version

DESCRIPTION
  Add a new Adobe I/O Events action


ALIASES
  $ aio app add events

aio app add ext

为工程添加新的扩展名

USAGE
  $ aio app add ext [-y] [-e <value>...] [--install] [-v] [--version] [--config-validation]

FLAGS
  -e, --extension=<value>...    Specify extensions to add, skips selection prompt
  -v, --verbose                 Verbose output
  -y, --yes                     Skip questions, and use all default values
      --[no-]config-validation  [default: true] Validate the app configuration file(s) before continuing.
      --[no-]install            [default: true] Run npm installation after files are created
      --version                 Show version

DESCRIPTION
  Add new extensions to the project


ALIASES
  $ aio app add ext
  $ aio app add extensions

aio app add extension

为工程添加新的扩展名

USAGE
  $ aio app add extension [-y] [-e <value>...] [--install] [-v] [--version] [--config-validation]

FLAGS
  -e, --extension=<value>...    Specify extensions to add, skips selection prompt
  -v, --verbose                 Verbose output
  -y, --yes                     Skip questions, and use all default values
      --[no-]config-validation  [default: true] Validate the app configuration file(s) before continuing.
      --[no-]install            [default: true] Run npm installation after files are created
      --version                 Show version

DESCRIPTION
  Add new extensions to the project


ALIASES
  $ aio app add ext
  $ aio app add extensions

参见代码 : @adobe/aio-cli-plugin-app (英语)

aio app add extensions

为工程添加新的扩展名

USAGE
  $ aio app add extensions [-y] [-e <value>...] [--install] [-v] [--version] [--config-validation]

FLAGS
  -e, --extension=<value>...    Specify extensions to add, skips selection prompt
  -v, --verbose                 Verbose output
  -y, --yes                     Skip questions, and use all default values
      --[no-]config-validation  [default: true] Validate the app configuration file(s) before continuing.
      --[no-]install            [default: true] Run npm installation after files are created
      --version                 Show version

DESCRIPTION
  Add new extensions to the project


ALIASES
  $ aio app add ext
  $ aio app add extensions

aio app add service

订阅当前工作空间的服务

USAGE
  $ aio app add service [-v] [--version] [--config-validation] [--use-jwt]

FLAGS
  -v, --verbose                 Verbose output
      --[no-]config-validation  [default: true] Validate the app configuration file(s) before continuing.
      --use-jwt                 if the config has both jwt and OAuth Server to Server Credentials (while migrating),
                                prefer the JWT credentials
      --version                 Show version

DESCRIPTION
  Subscribe to Services in the current Workspace


ALIASES
  $ aio app add services

参见代码 : @adobe/aio-cli-plugin-app (英语)

aio app add services

订阅当前工作空间的服务

USAGE
  $ aio app add services [-v] [--version] [--config-validation] [--use-jwt]

FLAGS
  -v, --verbose                 Verbose output
      --[no-]config-validation  [default: true] Validate the app configuration file(s) before continuing.
      --use-jwt                 if the config has both jwt and OAuth Server to Server Credentials (while migrating),
                                prefer the JWT credentials
      --version                 Show version

DESCRIPTION
  Subscribe to Services in the current Workspace


ALIASES
  $ aio app add services

aio app add web-assets

添加网络资产支持

USAGE
  $ aio app add web-assets [-y] [-e <value>] [--install] [-v] [--version] [--config-validation]

FLAGS
  -e, --extension=<value>       Add web-assets to a specific extension
  -v, --verbose                 Verbose output
  -y, --yes                     Skip questions, and use all default values
      --[no-]config-validation  [default: true] Validate the app configuration file(s) before continuing.
      --[no-]install            [default: true] Run npm installation after files are created
      --version                 Show version

DESCRIPTION
  Add web assets support

参见代码 : @adobe/aio-cli-plugin-app (英语)

aio app build

构建 Adobe I/O App

USAGE
  $ aio app build [-v] [--version] [--config-validation] [--actions | -a <value>...] [--web-assets]
    [--force-build] [--content-hash] [--web-optimize] [-e <value>... | ]

FLAGS
  -a, --action=<value>...       Build only a specific action, the flags can be specified multiple times, this will set
                                --no-publish
  -e, --extension=<value>...    Build only a specific extension point, the flags can be specified multiple times
  -v, --verbose                 Verbose output
      --[no-]actions            [default: true] Build actions if any
      --[no-]config-validation  [default: true] Validate the app configuration file(s) before continuing.
      --[no-]content-hash       [default: true] Enable content hashing in browser code
      --[no-]force-build        [default: true] Force a build even if one already exists
      --version                 Show version
      --[no-]web-assets         [default: true] Build web-assets if any
      --web-optimize            [default: false] Enable optimization (minification) of js/css/html

DESCRIPTION
  Build an Adobe I/O App

  Build the actions and web assets for an Adobe I/O App. Build is optimized to only build what is necessary.
  Use the --force-build flag to force a build even if one already exists.

参见代码 : @adobe/aio-cli-plugin-app (英语)

aio app clean

从本地机器上取出所有建筑文物

USAGE
  $ aio app clean [-v] [--version] [--config-validation]

FLAGS
  -v, --verbose                 Verbose output
      --[no-]config-validation  [default: true] Validate the app configuration file(s) before continuing.
      --version                 Show version

DESCRIPTION
  Remove all build artifacts from the local machine
  This command completely cleans all build artifacts from the dist directory including:
  - Action build files
  - Web assets (both production and development)
  - Build tracking files
  - Deployment tracking files

  Note that this will require a full rebuild on your next build command.

参见代码 : @adobe/aio-cli-plugin-app (英语)

aio app config

管理应用程序配置

USAGE
  $ aio app config [-v] [--version] [--config-validation]

FLAGS
  -v, --verbose                 Verbose output
      --[no-]config-validation  [default: true] Validate the app configuration file(s) before continuing.
      --version                 Show version

DESCRIPTION
  Manage app config

ALIASES
  $ aio app config
  $ aio app config

参见代码 : @adobe/aio-cli-plugin-app (英语)

aio app config get

获取应用程序配置

USAGE
  $ aio app config get [-v] [--version] [--config-validation]

FLAGS
  -v, --verbose                 Verbose output
      --[no-]config-validation  [default: true] Validate the app configuration file(s) before continuing.
      --version                 Show version

DESCRIPTION
  Get app config

ALIASES
  $ aio app config get

参见代码 : @adobe/aio-cli-plugin-app (英语)

aio app config get lf

获得日志转发目标配置

USAGE
  $ aio app config get lf [-v] [--version] [--config-validation]

FLAGS
  -v, --verbose                 Verbose output
      --[no-]config-validation  [default: true] Validate the app configuration file(s) before continuing.
      --version                 Show version

DESCRIPTION
  Get log forwarding destination configuration

ALIASES
  $ aio app config get log-forwarding
  $ aio app config get lf

aio app config get lf errors

获取日志转发出错

USAGE
  $ aio app config get lf errors [-v] [--version] [--config-validation]

FLAGS
  -v, --verbose                 Verbose output
      --[no-]config-validation  [default: true] Validate the app configuration file(s) before continuing.
      --version                 Show version

DESCRIPTION
  Get log forwarding errors

ALIASES
  $ aio app config get log-forwarding errors
  $ aio app config get lf errors

aio app config get log-forwarding

获得日志转发目标配置

USAGE
  $ aio app config get log-forwarding [-v] [--version] [--config-validation]

FLAGS
  -v, --verbose                 Verbose output
      --[no-]config-validation  [default: true] Validate the app configuration file(s) before continuing.
      --version                 Show version

DESCRIPTION
  Get log forwarding destination configuration

ALIASES
  $ aio app config get log-forwarding
  $ aio app config get lf

参见代码 : @adobe/aio-cli-plugin-app (英语)

aio app config get log-forwarding errors

获取日志转发出错

USAGE
  $ aio app config get log-forwarding errors [-v] [--version] [--config-validation]

FLAGS
  -v, --verbose                 Verbose output
      --[no-]config-validation  [default: true] Validate the app configuration file(s) before continuing.
      --version                 Show version

DESCRIPTION
  Get log forwarding errors

ALIASES
  $ aio app config get log-forwarding errors
  $ aio app config get lf errors

参见代码 : @adobe/aio-cli-plugin-app (英语)

aio app config set

设置应用程序配置

USAGE
  $ aio app config set [-v] [--version] [--config-validation]

FLAGS
  -v, --verbose                 Verbose output
      --[no-]config-validation  [default: true] Validate the app configuration file(s) before continuing.
      --version                 Show version

DESCRIPTION
  Set app config

ALIASES
  $ aio app config set

参见代码 : @adobe/aio-cli-plugin-app (英语)

aio app config set lf

设置日志转发目标配置

USAGE
  $ aio app config set lf [-v] [--version] [--config-validation]

FLAGS
  -v, --verbose                 Verbose output
      --[no-]config-validation  [default: true] Validate the app configuration file(s) before continuing.
      --version                 Show version

DESCRIPTION
  Set log forwarding destination configuration

ALIASES
  $ aio app config set log-forwarding
  $ aio app config set lf

aio app config set log-forwarding

设置日志转发目标配置

USAGE
  $ aio app config set log-forwarding [-v] [--version] [--config-validation]

FLAGS
  -v, --verbose                 Verbose output
      --[no-]config-validation  [default: true] Validate the app configuration file(s) before continuing.
      --version                 Show version

DESCRIPTION
  Set log forwarding destination configuration

ALIASES
  $ aio app config set log-forwarding
  $ aio app config set lf

参见代码 : @adobe/aio-cli-plugin-app (英语)

aio app create [PATH]

创建一个带有默认参数的新 Adobe I/O App

USAGE
  $ aio app create [PATH] [-v] [--version] [--config-validation] [-i <value>]

ARGUMENTS
  [PATH]  [default: .] Path to the app directory

FLAGS
  -i, --import=<value>          Import an Adobe I/O Developer Console configuration file
  -v, --verbose                 Verbose output
      --[no-]config-validation  [default: true] Validate the app configuration file(s) before continuing.
      --version                 Show version

DESCRIPTION
  Create a new Adobe I/O App with default parameters

查看代码( S): [@adobe/aio-cli-plug]

版本与发布记录

@adobe/aio-cli 共发布 62 个版本,首次发布于 2018/08/31;过去 12 个月发布了 7 个版本。

版本发布日期距今
11.2.0latest2026/10/1226 天前
11.1.42026/09/211 个月前
11.1.22026/06/045 个月前
11.1.12026/06/045 个月前
11.1.02026/05/086 个月前
11.0.22026/03/107 个月前

其他发布通道:next → 8.3.0-pre.2022-06-22.sha-075e355f。

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

@adobe/aio-cli 是什么?

Adobe I/O 广泛CLI

如何安装 @adobe/aio-cli?

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

@adobe/aio-cli 支持 TypeScript 吗?

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

@adobe/aio-cli 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

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

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

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

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

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

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

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

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