Agent skill

Aem CLI

by adobe in adobe/skills

Use this when installing, running, or configuring the Adobe AEM CLI (@adobe/aem-cli, formerly the helix-cli npm package; commands aem up, aem import, aem content), when aem up fails (port conflicts…

Apache-2.0Auto-check: notesBackend & APIs

Install Aem CLI

skills CLI
$ npx skills add adobe/skills --skill aem-cli -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install adobe/skills aem-cli --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/adobe/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/aem/edge-delivery-services/skills/aem-cli .claude/skills/aem-cli && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
aem-cli
GitHub stars
195
Token cost
~2.6k tokens
SKILL.md length
882 words
Files
5 (incl. references)
Skills in repo
105
Repo updated
First seen
Licence
Apache-2.0

At a glance

Use this when installing, running, or configuring the Adobe AEM CLI (@adobe/aem-cli, formerly the helix-cli npm package; commands aem up, aem import, aem content), when aem up fails (port conflicts…

  • Works in 7 steps: Install → aem up — Local Dev Server → .env Configuration → …
  • Tasks that involve API design
  • SKILL.md covers 1. Install, 2. aem up — Local Dev Server, 3. .env Configuration and 4. HTTPS / TLS, plus 5 more sections
  • Calls npm, curl and jq; reaches admin.da.live and content.da.live; needs AEM_TLS_KEY

What it does

Aem CLI is an agent skill from adobe/skills. Use this when installing, running, or configuring the Adobe AEM CLI (@adobe/aem-cli, formerly the helix-cli npm package; commands aem up, aem import, aem content), when aem up fails (port conflicts, cert errors, proxy 404s, pipeline vs. local-file confusion), or when migrating from the old helix-cli package. Covers installation, the local Edge Delivery dev server, .env / AEM configuration, HTTPS/TLS, proxy and certificate trust, content sync with da.live, and troubleshooting. For da.live content-format rules or…

Its SKILL.md is about 2.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including reference files (for example `.releaserc.json`, `CHANGELOG.md` and `package.json`).

It sits in Backend & APIs, covering API design. It works with Adobe Experience Manager and npm. The repository describes itself as: Adobe Skills for Agents. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve API design

Example prompts

  • “/aem-cli”

Requirements

  • Node.js
  • A credential in AEM_TLS_KEY

Workflow steps

7 steps, taken from the step headings in SKILL.md.

  1. Install
  2. aem up — Local Dev Server
  3. .env Configuration
  4. HTTPS / TLS
  5. Corporate Proxy and Certificate Trust
  6. aem import — Import Server
  7. aem content — da.live Content Sync

What it can do on your machine

Read from SKILL.md and the folder at commit cbc9952. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npm
    • curl
    • jq
    • npx
    • openssl
    • brew
    • choco
    • go

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • admin.da.live
    • content.da.live

    Also links to:

    • npmjs.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • AEM_TLS_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Aem CLI loads about 2.6k tokens when it runs, and up to ~4.3k if it reads all its reference files. Until then it costs about 159 tokens; SKILL.md has 882 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~159
When it runs · the whole SKILL.md, loaded when a task matches
~2.6k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~4.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:3
    ion, the local Edge Delivery dev server, .env / AEM_* configuration, HTTPS/TLS, proxy and certificate trust, content syn
  • NoteMentions a .env fileSKILL.md:98
    ## 3. `.env` Configuration
  • NoteMentions a .env fileSKILL.md:100
    All options can be persisted in `.env` at the project root; loaded automatically. `[verified]`
  • NoteMentions a .env fileSKILL.md:103
    # .env example
  • NoteMentions a .env fileSKILL.md:139
    ### Persisting TLS in .env
  • NoteMentions a .env fileSKILL.md:162
    set it in the shell profile or CI, not `.env`.
  • NoteMentions a .env fileSKILL.md:267
    mypath` (or `AEM_HTML_FOLDER=mypath` in `.env`) |

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from adobe/skills at commit cbc9952, republished under its Apache-2.0 licence (© adobe). 882 words, ~2,594 tokens.

Download SKILL.mdSave it as .claude/skills/aem-cli/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
aem-cli
description
Use this when installing, running, or configuring the Adobe AEM CLI (@adobe/aem-cli, formerly the helix-cli npm package; commands `aem up`, `aem import`, `aem content`), when `aem up` fails (port conflicts, cert errors, proxy 404s, pipeline vs. local-file confusion), or when migrating from the old helix-cli package. Covers installation, the local Edge Delivery dev server, .env / AEM_* configuration, HTTPS/TLS, proxy and certificate trust, content sync with da.live, and troubleshooting. For da.live content-format rules or the DA Source API contract use da-content; for writing EDS block code use content-driven-development.
license
Apache-2.0
metadata.version
1.0.0

AEM CLI

Local development tool for AEM Edge Delivery Services. Three commands: aem up (local dev server), aem import (import server + UI), aem content (da.live content sync).

Binary: aem (primary), hlx (alias from the former helix-cli package, renamed to @adobe/aem-cli at v15.0.0).


1. Install

Prerequisite: Node.js 12.11 or newer (Node 22 LTS recommended). [verified]

bash
# Global install
npm install -g @adobe/aem-cli

# One-off via npx (no global install needed)
npx -y @adobe/aem-cli up

Verify:

bash
aem --version   # or: hlx --version
Migrating from the old helix-cli package

If npm install -g @adobe/aem-cli fails with File exists: …/hlx, the old package is still installed and owns the binary. Uninstall it first (npm package scoped under @adobe, named helix-cli): [verified]

bash
npm uninstall -g @adobe/helix-cli
npm install -g @adobe/aem-cli

The binary name changes from hlx to aem; both work after installation because aem-cli ships hlx as an alias.


2. aem up — Local Dev Server

Agent-standard invocation:

bash
aem up --no-open --forward-browser-logs

Check the server is running:

bash
curl -s -o /dev/null -w "%{http_code}" http://localhost:3000
# Expected: 200
Key flags
FlagWhat it does
--no-openDo not open a browser window on startup
--forward-browser-logsForward browser console messages (log, error, warn, info) to the terminal
--port <n>Listen on a different port (default: 3000)
--addr <addr>Bind address; use * to allow external connections (default: 127.0.0.1)
--url <url>Origin URL to proxy content from (overrides the project's default pages URL)
--html-folder <dir>Serve local HTML files from <dir> without extensions
--html-mount <path>URL path where --html-folder files are served (default: /<dir>)
--no-livereloadDisable automatic browser reload on file changes
--stop-otherStop another AEM CLI instance on the same port before starting (default: true)
--tls-cert <file>Path to .pem file for TLS (see §4)
--tls-key <file>Path to .key file for TLS (see §4)
--allow-insecureAllow insecure (self-signed cert) requests to the upstream server
--print-indexPrint indexed records for the current page (debugging)
--site-token <token>Site token for CLI access to the website
--cookiesProxy all cookies (default: only hlx-auth-token is proxied)

--html-folder: without it, local HTML files are never served — all requests proxy to the remote pipeline, returning 404 for local-only paths. [verified]

Serving import HTML locally (preview-import pattern)
bash
aem up --html-folder drafts --no-open --forward-browser-logs
# Files in ./drafts/ are served at /drafts/<name> (no extension needed)

3. .env Configuration

All options can be persisted in .env at the project root; loaded automatically. [verified]

dotenv
# .env example
AEM_PORT=8080
AEM_PAGES_URL=https://stage.myproject.com
AEM_FORWARD_BROWSER_LOGS=true
AEM_HTML_FOLDER=drafts
AEM_TLS_CERT=server.crt
AEM_TLS_KEY=server.key
AEM_OPEN=/products

See references/command-reference.md for the complete AEM_* environment variable reference with defaults.


4. HTTPS / TLS

Install mkcert (brew install mkcert on macOS, choco install mkcert on Windows, go install filippo.io/mkcert@latest elsewhere), then:

bash
mkcert -install                                          # one-time CA install
mkcert -cert-file server.crt -key-file server.key localhost 127.0.0.1
aem up --tls-cert server.crt --tls-key server.key
Self-signed certificate (no mkcert)
bash
openssl req -new -newkey rsa:4096 -x509 -sha256 -days 365 -nodes \
  -out server.crt -keyout server.key -subj "/CN=localhost"
aem up --tls-cert server.crt --tls-key server.key
Persisting TLS in .env
dotenv
AEM_TLS_CERT=server.crt
AEM_TLS_KEY=server.key

5. Corporate Proxy and Certificate Trust

aem up fails with unable to get local issuer certificate behind HTTPS-intercepting proxies. Export the corporate CA cert from your browser or ask IT, then set:

bash
# macOS / Linux
export NODE_EXTRA_CA_CERTS=/path/to/corporate-ca.crt
aem up

# Windows
set NODE_EXTRA_CA_CERTS=./certs/corporate-ca.pem
aem up

NODE_EXTRA_CA_CERTS is a Node built-in — set it in the shell profile or CI, not .env.

Proxy env vars:

VariablePurpose
HTTP_PROXYProxy for HTTP requests
HTTPS_PROXYProxy for HTTPS requests
ALL_PROXYFallback for either protocol
NO_PROXYComma-separated hosts to bypass; * disables all proxies

6. aem import — Import Server

Local import server (default port 3001) serving the helix-importer-ui.

bash
aem import                   # opens Importer UI in browser at port 3001
aem import --no-open         # headless / background start
aem import --port 3002       # different port

Key flags:

FlagDefaultWhat it does
--port3001Import server port
--no-open—Do not open the browser window
--allow-insecuretrueAllow self-signed certs on the proxied site
--ui-repo <url>helix-importer-ui repo on GitHubCustom Importer UI repo
--skip-uifalseSkip downloading/installing the UI
--headers-file <file>—JSON file of custom headers for proxy requests
--cache <dir>—Cache proxied responses to a local folder
--dump-headersfalsePrint request headers to console for debugging
--tls-cert / --tls-key—TLS for the import server itself (see §4)

Workflow: For writing the import.js transformation script or running the full import pipeline, use the page-import or generate-import-html skills. This skill covers only starting and configuring the server.


Show full SKILL.md (306 more words)Show less

7. aem content — da.live Content Sync

bash
aem content clone [--path /]   # auth via browser popup; clones into ./content/
aem content status             # show added / modified / deleted files
aem content diff [path]        # diff local vs remote
aem content merge [path]       # sync remote changes into local files
aem content add <files..>      # stage changes (like git add)
aem content commit -m "..."    # commit staged changes (like git commit)
aem content push               # upload committed changes to da.live
aem content push --force       # overwrite remote on conflict

Auth token cached at .hlx/.da-token.json (gitignored); browser OAuth on first use.

Read the token directly to authenticate curl calls:

bash
TOKEN=$(jq -r .access_token .hlx/.da-token.json)
Known behaviour: binary files

aem content push silently no-ops on binary files (images, PDFs, fonts). [verified]

Verify a binary upload landed:

bash
curl -sI https://content.da.live/<org>/<repo>/path/to/image.png | grep -i "content-type"

If it 404s, upload the binary directly via the DA Source API:

bash
TOKEN=$(jq -r .access_token .hlx/.da-token.json)
curl -X POST \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: image/png" \
  --data-binary @./image.png \
  "https://admin.da.live/source/<org>/<repo>/path/to/image.png"
Known behaviour: pre-upload HTML normalization

Pre-upload normalization strips EDS icon decorations (<span class="icon icon-X"> etc.). [verified] For byte-faithful EDS HTML, POST directly to the DA Source API:

bash
curl -X POST \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: text/html" \
  --data-binary @./page.html \
  "https://admin.da.live/source/<org>/<repo>/path/to/page.html"

See the da-content skill (platform reference §7) for the DA Source API contract and rate limits.


Troubleshooting

SymptomCauseFix
npm install -g @adobe/aem-cli → File exists: …/hlxold helix-cli package still owns the binaryuninstall the old package (see §1) then reinstall
aem up → EADDRINUSE: address already in use :::3000Port 3000 is takenPass --port <other> or kill the process on 3000
aem up → unable to get local issuer certificateCorporate proxy intercepts TLSExport corp CA cert → export NODE_EXTRA_CA_CERTS=/path/to/ca.crt
localhost:3000/mypath returns 404Local HTML file in mypath/ not mountedAdd --html-folder mypath (or AEM_HTML_FOLDER=mypath in .env)
aem up → pipeline 404 for pages that exist liveWrong origin URL proxiedPass --url https://your-pages-url.aem.page
aem content push reports success but binary is missingCLI silently no-ops on binariesUpload binary via DA Source API (see §7)
aem content push strips icon spans from HTMLPre-upload normalization removes EDS decorationsPOST directly to DA Source API for byte-faithful upload
aem import UI doesn't loadPort 3001 in use, or UI download failedTry --port 3002; or --skip-ui and open the UI separately

Reference

© adobe, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files (references) in plugins/aem/edge-delivery-services/skills/aem-cli of adobe/skills.

  • SKILL.md
  • .releaserc.json
  • CHANGELOG.md
  • package.json
  • references/command-reference.md

Open the folder on GitHubat commit cbc9952

Compare with similar skills

Aem CLI next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Aem CLI compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Aem CLI this skilladobe/skills195—~2.6kAutomated safety check: NotesApache-2.0
Ts2moonbit Migrationmizchi/skills356—~4.2kAutomated safety check: PassNone
SDKkortix-ai/suna20k—~9.6kAutomated safety check: PassCustom licence
ToolJet Marketplace Plugin BuilderToolJet/ToolJet41k—~2.1kAutomated safety check: PassAGPL-3.0
API DesignerJeffallan/claude-skills12k2 repos~2kAutomated safety check: PassMIT
Nodejs Backend Patternsever-works/ever-works15817 repos~4kAutomated safety check: PassAGPL-3.0

Similar skills

  • Migrate a TypeScript codebase to MoonBit on the js target while keeping the same JavaScript API contract, using mizchi/js (JS/Web/Node bindings), mizchi/x (cross-target async backend…

    356 GitHub stars~4.2k tokensUpdated 5 days ago
    Backend & APIsAuto-check passed
  • SDK

    kortix-ai/suna

    The hard rules for editing @kortix/sdk (packages/sdk) — a PUBLISHED npm package with constraints no other package in this repo has: TDD is mandatory (failing test first, gates run and pasted every…

    20k GitHub stars~9.6k tokensUpdated today
    Testing & QAAuto-check passed
  • Turns an API description, such as an OpenAPI file or a Postman collection, into a connector plugin for ToolJet's marketplace and checks it with the repo's validator.

    41k GitHub stars~2.1k tokensUpdated today
    Backend & APIsAuto-check passed
  • API Designer

    Jeffallan/claude-skills

    Designs REST and GraphQL APIs from resource modeling to an OpenAPI 3.1 contract, with versioning, pagination and RFC 7807 error handling.

    12k GitHub starsUsed in 2 repos~2k tokens
    Backend & APIsAuto-check passed
  • Nodejs Backend Patterns

    ever-works/ever-works

    Build production-ready Node.js backend services with Express/Fastify, implementing middleware patterns, error handling, authentication, database integration, and API design best practices.

    158 GitHub starsUsed in 17 repos~4k tokens
    Backend & APIsAuto-check passed
  • Use whenever asked to add, create, or scaffold a CRUD endpoint, router, or entity in this repo's server (create/list/get/update/delete handlers, new…

    23k GitHub stars~461 tokensUpdated today
    Backend & APIsAuto-check passed

More from adobe/skills

All 105 skills in this repo
  • Scaffolds, implements, deploys and debugs Adobe Runtime actions in App Builder projects, with templates for webhooks, events, database CRUD, sequences and Asset Compute workers.

    195 GitHub stars~3.1k tokensUpdated today
    Auto-check passed
  • Launches Chrome with an unpacked extension over CDP, opens its sidepanel, popup or options page, and hands over to cdp-connect for clicks, typing and screenshots.

    195 GitHub stars~952 tokensUpdated today
    Auto-check passed
  • Extracts icons, metadata, text, forms, videos and social links from any web page with playwright-cli, with SVG icon classification and cleanup.

    195 GitHub stars~1k tokensUpdated today
    Auto-check passed
  • Page Langs

    adobe/skills

    Detect all languages used on a webpage — both declared (html@lang, hreflang alternate links, nested lang= attributes, meta content-language) and actually present in the body text (Google CLD3 via…

    195 GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Page Prep

    adobe/skills

    Prepare any webpage for clean interaction by detecting and removing disruptive overlays (cookie banners, GDPR consent, modals, popups, newsletter signups, paywalls, login walls).

    195 GitHub stars~2.1k tokensUpdated today
    Auto-check passed
  • Page Reduce

    adobe/skills

    Reduce a webpage to a structural skeleton with semantic tokens.

    195 GitHub stars~1.9k tokensUpdated today
    Auto-check passed

Categories

Questions about Aem CLI

What does Aem CLI do?

Use this when installing, running, or configuring the Adobe AEM CLI (@adobe/aem-cli, formerly the helix-cli npm package; commands aem up, aem import, aem content), when aem up fails (port conflicts…. Aem CLI is an agent skill from adobe/skills. Use this when installing, running, or configuring the Adobe AEM CLI (@adobe/aem-cli, formerly the helix-cli npm package; commands aem up, aem import, aem content), when aem up fails (port conflicts, cert errors, proxy 404s, pipeline vs.

When should I use Aem CLI?

Aem CLI fits situations like: tasks that involve API design.

How do I install Aem CLI in Claude Code?

Run `npx skills add adobe/skills --skill aem-cli -a claude-code`. Or copy the skill folder (plugins/aem/edge-delivery-services/skills/aem-cli in adobe/skills) into .claude/skills/aem-cli in your project. Claude Code loads it when a task matches its description.

How do I install Aem CLI in Codex?

Run `npx skills add adobe/skills --skill aem-cli -a codex`. Or copy the skill folder (plugins/aem/edge-delivery-services/skills/aem-cli in adobe/skills) into .agents/skills/aem-cli in your project. Codex loads it when a task matches its description.

Can I use Aem CLI in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add adobe/skills --skill aem-cli -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/aem-cli, .gemini/skills/aem-cli, .github/skills/aem-cli and .opencode/skills/aem-cli in your project.

What does Aem CLI need to run?

Going by SKILL.md and its folder, Aem CLI needs the command-line tools its instructions call (npm, curl, jq, npx, openssl and brew) and credentials named AEM_TLS_KEY. Our summary lists: Node.js; A credential in AEM_TLS_KEY.

Does Aem CLI access the network?

SKILL.md names 3 domains. In commands or code: admin.da.live and content.da.live; the agent is likely to contact these when it follows the instructions. As links in the text: npmjs.com. This is read from the text; nothing was executed.

Is Aem CLI safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Aem CLI use?

Aem CLI is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Aem CLI use?

About 2.6k tokens (SKILL.md is roughly 10k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.7k tokens, read only when the agent opens those files.

What are the alternatives to Aem CLI?

Skills that share tags, products or a category with Aem CLI: Ts2moonbit Migration (mizchi/skills, 356 stars), SDK (kortix-ai/suna, 20k stars), ToolJet Marketplace Plugin Builder (ToolJet/ToolJet, 41k stars) and API Designer (Jeffallan/claude-skills, 12k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Aem CLI?

adobe (a GitHub organization) maintains it in adobe/skills, which has 195 GitHub stars. The repository holds 105 skills in this directory. The repository was last updated on October 6, 2026.

Source: adobe/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.