/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
Claude Code
$ npx -y skills add adobe/skills --skill aem-cli --agent claude-code
Codex
$ npx skills add adobe/skills --skill aem-cli -a codex -y
Cursor
$ npx skills add adobe/skills --skill aem-cli -a cursor -y
Gemini CLI
$ npx skills add adobe/skills --skill aem-cli -a gemini-cli -y
GitHub Copilot
$ npx skills add adobe/skills --skill aem-cli -a github-copilot -y
OpenCode
$ npx skills add adobe/skills --skill aem-cli -a opencode -y
Windsurf
$ npx skills add adobe/skills --skill aem-cli -a windsurf -y
SKILL.md
aem-cli.SKILL.mdname: 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
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) |
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).
Other skills on skills.
More skills from other plugins.
karpathy-guidelines
Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid…
agent-builder
Design and build AI agents for any domain. Use when users: (1) ask to "create an agent", "build an assistant", or "design an AI…
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.

