Search the developer.adobe.com docs. Manage Adobe Developer Console projects, workspaces, APIs, and credentials. Create and test I/O Events registrations and subscriber defined filters. Set up, create, deploy, and troubleshoot App Builder apps.
93%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
High
Do not use without reviewing
Mandatory prerequisite: Before starting this skill, read and apply Common Skill Rules.
Deploy the app in the current folder to Stage or Production safely, and report what actually happened. One confirmation per deploy. Production needs the word "Production" in that confirmation.
<skill-dir> below is the folder containing this SKILL.md. Run scripts as node "<skill-dir>/scripts/<name>.mjs" from the app folder (the one with app.config.yaml).
Call report_skill_context once with skill_name: "app-builder-deploy" and skill_version: "1.0.0".
node "<skill-dir>/scripts/app-context.mjs". It prints the org, project and workspace the folder is linked to, plus each extension's actions (with their Node.js runtime) and whether it has a UI. Secrets are never included. If it returns ok: false:
app-builder-setup, then call report_skill_context again.app-builder-create-app skill, or explain how to link the folder to an existing project.aio app info failed: with consent, run aio app build to show the configuration error.get_projects for org.id (filterBy: "all") must include project.id. If it returns the Developer Terms message instead of projects, follow the Terms rule below first. A mismatch means the folder belongs to a project in another org or environment. Explain this and stop.nodejs:20 (for example nodejs:16) will be rejected. Offer to change it to nodejs:22 in src/<extension folder>/ext.config.yaml before deploying.Describe extensions in plain words: dx/excshell/1 is the Experience Cloud Shell app; aem/cf-console-admin/1 the Content Fragments console; aem/cf-editor/1 the Content Fragment editor; aem/assets/* Assets View; aem/launchpad/1 Experience Hub; universal-editor/ui/1 Universal Editor; workfront/ui/1 Workfront; application a standalone app. Show actions by their names without the package prefix.
list_workspaces (org id, project id). If the target isn't in the list, stop. Never let the CLI create a workspace.get_credentials, then get_credential_services for every credential. Compare the two sets of sdkCodes in both directions.
dev-console-subscribe-api skill to add them to the Production workspace.dev-console-subscribe-api skill, or to remove them from Production with the dev-console-unsubscribe-api skill.application, no extensions): the CLI doesn't check whether a standalone app is published, so a deploy replaces what users see right away. Say so.Summarize in plain words and ask once:
This consent covers this one deploy only. Ask again before every further deploy, including a retry after a fix and the missing-action recovery in Step 6, and say what changed since the last attempt. Production again needs a new "deploy to Production" reply.
aio app dev in this conversation, stop that exact process first.aio app use -w <target workspace id> --no-input < /dev/null (PowerShell: $null | aio app use -w <id> --no-input).app-context.mjs and check that workspace.id equals the target id. If it doesn't, stop and report.aio app clean. The CLI keeps one local record of the action code it last uploaded from this computer, shared by all workspaces, in the dist folder. Without this, unchanged actions are skipped in the new workspace. A real test showed the secured action's web entry point missing (404) while the CLI still printed "Successful deployment". clean deletes only local build output.aio app clean too. That local record only knows this computer's uploads, so without it the deploy can skip actions someone else has since replaced, leaving their code live. If you can't tell, ask in the Step 3 confirmation.Note the time first (node -e "console.log(Date.now())"), then run aio app deploy 2>&1 in the app folder with a 15-minute timeout (usually under a minute), and capture the output. The skip and hook messages go to stderr, so both streams are needed.
aio app deploy -a <action> (one action, faster) only when the developer asks, and only on Stage. It skips the published-app check and the extension registration. Afterwards, judge only that action in the Step 6 check: other actions listed as missing or stale were not part of this deploy. A retry uses the same -a, after a new confirmation (Step 3); ask separately before running a full deploy instead.--force-deploy, --force-publish or --force-events, and never run aio app undeploy, on your own initiative. The only exception is the published-app override below.Classify the output. Don't rely on the exit code:
| Output | Report |
|---|---|
deployment will be skipped | Skipped: the Production app is published, so nothing was updated. |
skipped by hook | Partial: name the part that was skipped. |
| Non-zero exit or an error | Failed: nothing new is live for the part that failed. Use references/deploy-failures.md and offer the fix. Retry at most once, and only after a new confirmation (Step 3). |
Successful deployment and none of the above | Deployed, once verify-actions.mjs passes (below). Deployed <n> action(s) may count fewer actions than the app has, and No actions deployed means the code was unchanged since the last upload from this computer. Both are fine if the check passes. |
| Anything else | Unconfirmed: say so and show the last relevant lines. |
For a deployed app, verify and share:
node "<skill-dir>/scripts/verify-actions.mjs". It checks that every action of the app exists in the linked workspace, including a secured action's two entries. After aio app clean in Step 4 (a workspace switch or a shared workspace, where every action uploads again), add --since <time noted before the deploy>. This compares a local clock with Runtime's server timestamps: stale means freshness is Unconfirmed, not proof that the deploy left old code live.
--max-pages 40 (per package), --page-size 50, --command-timeout-seconds 60 and --max-output-mb 64 (MiB per captured CLI stream). These are the defaults; each takes a positive whole number. Timeout and buffer settings also apply while reading app configuration. Page size stays within Runtime's documented 1–50 range, numeric conversions must remain safe, and the buffer cannot exceed Node's string-size limit.ok: false with verified: false, never a partial inventory reported as missing actions. Increase --max-pages to read more; do not treat an incomplete inventory as deployment failure.missing not empty: report Partial, name the missing actions, and offer to run aio app clean and deploy once more (with the same -a after a one-action deploy). Do this only after a new confirmation (Step 3), then verify again. If the developer declines or anything is still missing, the result stays Partial.stale not empty: report Unconfirmed and explain freshnessWarning. Check that the local clock is synchronized before concluding the code is old. Don't clean or redeploy solely because of this comparison, and don't widen the time threshold to make it pass: doing so could accept genuinely stale code.unknownUpdate not empty: the CLI didn't report when those actions were last updated, so freshness can't be confirmed. Report them as Unconfirmed.ok: false with an error (the check itself couldn't run): report the deploy as Unconfirmed, not as deployed.uiOnly: true: the app has no actions, and the UI link below is the check.To view your deployed application:. For Experience Cloud Shell apps, also the link after in the Experience Cloud shell:. For AEM extensions, use the Extension Manager preview link after follow the URL:, and ignore the Experience Cloud Shell link that the CLI prints for every app.web actions: in the deploy output, or aio app get-url --json. A secured action answers 401 when opened directly in a browser; that is expected.Skipped (published app): recommend the normal path. An org admin retracts the app in Adobe Exchange, which makes it unavailable to the org until it's approved again. Then deploy and submit it for approval again. Offer to deploy to Stage meanwhile.
aio app deploy --force-deploy replaces the approved live app for every user in the org, without a new review.--force-deploy, never --force-publish or --force-events.After any Production attempt (deployed, skipped, partial or failed), switch the folder back to Stage with the guarded switch. Later local runs and deploys then won't touch Production. Tell the developer you did it.
.env, .aio or tokens. Use app-context.mjs for project details.app-builder-setup Step 5 (show the Terms link, and call accept_developer_terms only after the developer explicitly agrees), then retry the call. Never read that message as an empty list or a mismatch. If they don't agree, stop.search_adobe_docs with the exact error text before guessing.