@adobe/aio-lib-console-project-installation

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

A library to configure Adobe Console Projects from a file.

原始使用文档
文档目录8 节
  1. Installing
  2. Usage
  3. Functions
  4. init(accessToken, templateConfigurationFile) ⇒ TemplateInst…
  5. validate(templateConfigurationFile, pretty) ⇒ object
  6. Debug Logs
  7. Contributing
  8. Licensing

License

Adobe I/O Lib Console Project Installation

This is an internal helper library to create and configure remote Developer Console resources, like services and credentials, based on a template's install.yaml configuration file.

The following keys are supported in the install.yaml file:

  • categories: (Required) Categories are informational and at least one category must be defined. See a list of supported categories here.
  • workspaces: (Optional) A list of workspace names to create. Runtime namespaces are added by default for each workspace, if the runtime key is set to true. Staging and Production workspaces are created by default if not defined.
  • runtime: (Optional) Defines whether Runtime should be configured for each workspace. If not defined, the default is false.
  • apis: (Optional) A list of Adobe services, identified by their SDK code required by the template to work. By default, all services are attached to all configured workspaces.

A note on apis: Developer Console supports three types of services: AdobeIO, Enterprise and Analytics. Currently, only AdobeIO and Enterprise services are supported for configuration by this library.

Installing

$ npm install @adobe/aio-lib-console-project-installation

Usage

  1. Initialize the template handler
const { getToken } = require('@adobe/aio-lib-ims')
const { CLI } = require('@adobe/aio-lib-ims/src/context')
const templateHandler = require('@adobe/aio-lib-console-project-installation')

// Instantiate Adobe Developer Console SDK
const accessToken = await getToken(CLI)

// Instantiate App Builder Template Manager
const installConfigFile = 'install.yml'
const templateManager = await templateHandler.init(accessToken, installConfigFile)
  1. Call methods using the initialized Template Manager
  // Install the template
  try {
    const orgId = 'org-id'
    const templateId = 'template-id'
    const result = await templateManager.installTemplate(orgId, templateId)
    console.log(result)

  } catch (e) {
    console.error(e)
  }

Template validation

You can use this library to validate the App Builder application install.yaml file.

const templateHandler = require('@adobe/aio-lib-console-project-installation')

const pathToInstallConfigFile = 'install.yml'

// Second parameter is optional. Set it to `true` if you want to get prettified errors.
const { valid, errors } = await templateHandler.validate(path, true)

Functions

init(accessToken, templateConfigurationFile) ⇒ TemplateInstallManager

Returns a new TemplateInstallManager object.

validate(templateConfigurationFile, pretty) ⇒ object

init(accessToken, templateConfigurationFile) ⇒ TemplateInstallManager

Returns a new TemplateInstallManager object.

Kind: global function
Returns: TemplateInstallManager - A new TemplateInstallManager object.

ParamTypeDescription
accessTokenstringThe Adobe Console API client.
templateConfigurationFilestringThe path to the configuration file.

validate(templateConfigurationFile, pretty) ⇒ object

Kind: global function
Returns: object - Object with properties valid, configuration and errors

ParamTypeDefaultDescription
templateConfigurationFilestringThe path to the configuration file.
prettybooleanfalsePrettify errors.

Debug Logs

LOG_LEVEL=debug <your_call_here>

Prepend the LOG_LEVEL environment variable and debug value to the call that invokes your function, on the command line. This should output a lot of debug data for your SDK calls.

Contributing

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

Licensing

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

版本与发布记录

@adobe/aio-lib-console-project-installation 共发布 17 个版本,首次发布于 2022/07/12;过去 12 个月发布了 2 个版本。

版本发布日期距今
3.1.2latest2026/09/101 个月前
3.1.12026/03/307 个月前
3.1.02025/10/011.1 年前
3.0.32025/06/271.4 年前
3.0.22025/01/211.8 年前
3.0.12024/02/122 年前

其他发布通道:next → 2.3.0-pre.2024-01-10.sha-6d8775bd。

关于 @adobe/aio-lib-console-project-installation 的常见问题

@adobe/aio-lib-console-project-installation 是什么?

A library to configure Adobe Console Projects from a file.

如何安装 @adobe/aio-lib-console-project-installation?

在项目目录运行 npm install @adobe/aio-lib-console-project-installation,或使用 pnpm add / yarn add / bun add。

@adobe/aio-lib-console-project-installation 支持 TypeScript 吗?

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

@adobe/aio-lib-console-project-installation 支持 ESM 还是 CommonJS?

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

@adobe/aio-lib-console-project-installation 需要什么版本的 Node.js?

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

@adobe/aio-lib-console-project-installation 可以商用吗?

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

@adobe/aio-lib-console-project-installation 的下载量有多少?

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

@adobe/aio-lib-console-project-installation 还在维护吗?

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