Skip to content
AI & Agents
Skill

/aem-cli

Use this when running or troubleshooting the local Edge Delivery dev server or the Adobe AEM CLI (@adobe/aem-cli, formerly helix-cli; `aem up`, `aem content`, `aem import`). Covers starting `aem up` and its port (git worktrees, a port already in use), serving local test pages

From plugin
skills
338183 skills5 MCP

Claude Code

$ npx -y skills add adobe/skills --skill aem-cli --agent claude-code

SKILL.md

aem-cli.SKILL.md
name: aem-cli
description: Use this when running or troubleshooting the local Edge Delivery dev server or the Adobe AEM CLI (@adobe/aem-cli, formerly helix-cli; `aem up`, `aem content`, `aem import`). Covers starting `aem up` and its port (git worktrees, a port already in use), serving local test pages from `./content/`, cloning da.live content locally with `aem content clone` to preview, inspect or edit it and pushing edits back, `aem up` failures (cert errors, proxy 404s, local pages not found), .env / AEM_* configuration, HTTPS, installing or upgrading the CLI, and the importer server. For da.live content-format rules or the DA Source API use da-content; for writing EDS block code use content-driven-development.
license: Apache-2.0
metadata:
  version: "1.1.0"

AEM CLI

Local tooling for AEM Edge Delivery Services: `aem up` (dev server), `aem content` (da.live content sync), `aem import` (importer UI). Needs Node 18+.

Check the version before relying on `./content/` or `aem content`, or when a content operation returns **403**: compare `aem --version` with `npm view @adobe/aem-cli version`; upgrade with `npm install -g @adobe/aem-cli@latest`. `aem content` and `./content/` serving need 16.18+, explicit IMS login 16.22.3+, worktree port handling 16.22.12+. For persistent 403s, invalidate the active project/environment’s cached token and retry with the intended IMS org before assuming DA permissions need changing.

`aem up`

aem up --no-open --no-stop-other
  • **Port:** 3000 by default, but in a git worktree `aem up` picks a port from the branch

name and logs `Git worktree detected. Using port N`. Always use the port it logs.

  • **Another server on the port:** by default `aem up` stops it, even another checkout's.

`--no-stop-other` exits with `Port N already in use` instead: reuse that server if it is this checkout's, otherwise pass `--port <free port>`.

  • **Local pages:** `aem up` serves `./content/` before proxying, with no flag:

`content/drafts/x.html` is at `/drafts/x` (and `/drafts/x.plain.html`). The file is a full document (`<body><header></header><main>…</main><footer></footer></body>`). Use `--html-folder <dir>` only for HTML outside `./content/`, such as import output. Local pages are not indexed: `/query-index.json` is proxied from the remote site unless `content/query-index.json` exists, so find local pages on disk in `./content/`.

  • **Other origin:** `--url https://main--<site>--<org>.aem.page` (e.g. stage).
  • **`.env`:** every flag has an `AEM_` variable read from the project's `.env`: `AEM_PORT`,

`AEM_PAGES_URL`, `AEM_TLS_CERT`, `AEM_TLS_KEY`, `AEM_NO_OPEN=true` (not `AEM_OPEN=false`).

  • **HTTPS:** `--tls-cert <crt> --tls-key <key>` (mkcert or openssl).

`aem content` (da.live)

Clone da.live pages to preview, inspect or edit them locally; `aem up` serves them from `./content/`:

aem content clone --path /drafts       # or --all; browser sign-in; writes ./content/

To send edits or new pages back:

aem content add drafts/page.html       # paths relative to ./content/
aem content commit -m "Add test page"
aem content push
  • `clone` fails if `./content/` exists (`--force` deletes it). Clone first, then add pages;

move existing local pages aside and copy them back in.

  • Org and site come from the git remote; override with `--org` / `--site`.
  • Pages you add or edit must be in DA's HTML format; see da-content.
  • It talks to `admin.da.live` only (`AEM_DA_ADMIN` overrides the host, 16.22.18). A site whose content is in Source Bus (`api.aem.live`) cannot be cloned or pushed this way; use the API in da-content.
  • Sign-in token: `.hlx/.da-token.json` (git-ignored). Don't ask for a token by hand.
  • `push` writes the DA source only. Preview the page (Sidekick, or

`POST https://admin.hlx.page/preview/<org>/<site>/main/<path>` with an IMS Bearer token, see da-auth) before `https://main--<site>--<org>.aem.page/<path>` shows it.

  • `aem content push` can report success without storing media files (PNG/SVG

verified on 16.22.16). Upload them with a DA Source API `PUT` using multipart field `data`; see da-content.

`aem import`

`aem import --no-open` serves the importer UI on port 3001. For writing `import.js` use page-import.

Troubleshooting

| Symptom | Fix | |---|---| | `Unknown argument: content` | CLI too old; upgrade | | Local page 404s | Put it under `./content/` (or `--html-folder` for other dirs) | | Live page 404s locally | Wrong origin: `--url https://main--<site>--<org>.aem.page` | | Pushed page not on `.aem.page` | Preview it (see above) |

Read more
@adobe
Ships withskills

Skills that teach AI coding agents to work with Adobe products. A skill is a folder with a SKILL.md that an agent loads when a task calls for it (agentskills.io).

338183 skills5 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
338
Star history of adobe/skills on GitHub, a chart by star-history.com

Other skills on skills.

aa-conversion-funnel-analysis

aa-conversion-funnel-a…

Analyzes a multi-step conversion funnel to find where visitors drop off and which steps have the worst leakage. Use this skill…

@adobe@adobeInstall Skill
aa-executive-briefing

aa-executive-briefing

Generates a concise, executive-ready performance summary covering key metrics, trends, and what's driving movement. Use this…

@adobe@adobeInstall Skill
aa-kpi-pulse

aa-kpi-pulse

Produces a compact KPI digest showing how key metrics changed over a period and what's driving the movement. Use this skill when…

@adobe@adobeInstall Skill
aa-top-movers-watchlist

aa-top-movers-watchlis…

Identifies which items (pages, campaigns, products, channels, regions) had the biggest increases or decreases for a key metric…

@adobe@adobeInstall Skill
cja-dimension-analysis

cja-dimension-analysis

Comprehensive dimension analysis and reporting for CJA. Use this skill whenever the user wants to analyze one or more dimensions…

@adobe@adobeInstall Skill

More skills from other plugins.

1password

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

openclaw3w393k
@openclaw@openclawInstall Skill

Questions about aem-cli.

Which coding agents can use aem-cli?
aem-cli installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.