Initialize your app
Before initializing your App Builder application for App Management, ensure you have completed the prerequisites and have the required services configured.
Prerequisites
Complete the following steps before initializing your app:
Create a project in the Adobe Developer Console
Create a new project or use an existing one in the Adobe Developer Console.
Add required services
Add the following services to your project:
- I/O Management API. Required for App Builder runtime actions.
- I/O Events. Required only if your app uses events.
- I/O Events for Adobe Commerce. Required only if your app uses events.
- Adobe Commerce as a Cloud Service. Required only for Adobe Commerce as a Cloud Service instances.
Only add the services your app needs. This keeps your credentials scoped to the minimum required permissions.
Set up App Builder
Ensure you have the Adobe I/O CLI installed and configured.
Initialize
Run the following command to set up your App Builder project:
Unlike the commands in CLI commands below, init runs before the library is installed. At this point each package manager needs to use its fetch-and-run runner (npx, yarn dlx, pnpm dlx, bun x) rather than its exec-style equivalent, which only runs locally installed binaries. For the same reason, init references the library by its full registry name (@adobe/aio-commerce-lib-app), whereas later commands invoke the locally installed binary using the short name (aio-commerce-lib-app).
Copied to your clipboardnpx @adobe/aio-commerce-lib-app init
Copied to your clipboard# For Yarn classic (v1), install firstyarn add @adobe/aio-commerce-lib-appyarn exec aio-commerce-lib-app init# For Yarn Berry (v2+), pull directly from remote via `dlx`yarn dlx @adobe/aio-commerce-lib-app init
Copied to your clipboardpnpm dlx @adobe/aio-commerce-lib-app init
Copied to your clipboardbun x @adobe/aio-commerce-lib-app init
The initialization process:
- Creates
app.commerce.configwith a template (prompts you to choose format and features if the file doesn't exist) - Installs required dependencies (
@adobe/aio-commerce-lib-app,@adobe/aio-commerce-sdk, and@adobe/aio-commerce-lib-configwhen business configuration is enabled) - Adds a
postinstallhook topackage.json - Generates all required artifacts (
commerce/configuration/1resources are only generated whenbusinessConfigis defined) - Updates
app.config.yamlandinstall.yamlwith the appropriate extension references. Creates these files if they do not exist.
CLI commands
The library provides the following CLI commands. Replace npx with your package manager of preference, using the below equivalents:
| Command | Description |
|---|---|
npx aio-commerce-lib-app generate all | Generate all artifacts (manifest, schema, and runtime actions). If your schema contains password fields, configure an encryption key. An encryption key is generated when no encryption key is found. See Password field encryption for more information |
npx aio-commerce-lib-app generate manifest | Generate only the app manifest file |
npx aio-commerce-lib-app generate actions | Generate only runtime actions |
npx aio-commerce-lib-app generate schema | Generate only the configuration schema |
Update the library
When a new version of the library is available, update your project to get the latest features and fixes:
Copied to your clipboardnpm install @adobe/aio-commerce-lib-app@latest @adobe/aio-commerce-sdk@latest
Copied to your clipboardyarn add @adobe/aio-commerce-lib-app@latest @adobe/aio-commerce-sdk@latest
Copied to your clipboardpnpm add @adobe/aio-commerce-lib-app@latest @adobe/aio-commerce-sdk@latest
Copied to your clipboardbun add @adobe/aio-commerce-lib-app@latest @adobe/aio-commerce-sdk@latest
If you use a business configuration, also run the following command:
Copied to your clipboardnpm install @adobe/aio-commerce-lib-config@latest
Copied to your clipboardyarn add @adobe/aio-commerce-lib-config@latest
Copied to your clipboardpnpm add @adobe/aio-commerce-lib-config@latest
Copied to your clipboardbun add @adobe/aio-commerce-lib-config@latest
The postinstall hook regenerates runtime actions when you install or update the library.

