Edit in GitHubLog an issue

Define your app

The app.commerce.config file is the central configuration file for your App Builder application. It defines your app metadata, business configuration schema, and other settings.

Create an app.commerce.config file consisting of app metadata and business configuration.

Example

The following example shows a complete app.commerce.config file:

Copied to your clipboard
import { defineConfig } from "@adobe/aio-commerce-lib-app/config"
export default defineConfig({
metadata: {
id: "my-commerce-application",
displayName: "My Commerce Application",
description: "This is a description for my application",
version: "1.0.0"
},
businessConfig: {
schema: [
{
name: "api-name",
label: "API name",
type: "text",
default: "",
},
{
name: "api-endpoint",
label: "API Endpoint",
type: "url",
default: "https://api.example.com",
},
{
name: "api-key",
label: "API Key",
type: "password",
},
{
name: "level",
label: "Risk Level",
type: "list",
options: [
{ label: "Low", value: "low" },
{ label: "Medium", value: "medium" },
{ label: "High", value: "high" },
],
default: "medium",
selectionMode: "single",
},
],
},
});

See Initialize your app for setup instructions and Build and deploy for information about generated runtime actions and project structure. If your schema includes password fields, see Password field encryption.

  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2026 Adobe. All rights reserved.