Documentation

Learn how to build, publish, and launch your site with Adobe Experience Manager.

Resources

aem Command Line Reference

Installation

$ npm install -g @adobe/aem-cli

Usage

$ aem --help

Help output:

Usage: aem <command> [options]

Commands:
  aem up       Run a AEM development server
  aem import   Run the AEM import server
  aem content  Manage AEM content from da.live



Options:
  --version                Show version number                         [boolean]
  --log-file, --logFile    Log file (use "-" for stdout)  [array] [default: "-"]
  --log-level, --logLevel  Log level
  [string] [choices: "silly", "debug", "verbose", "info", "warn", "error"] [default: "info"]
  --help                   Show help                                   [boolean]

use <command> --help to get command specific details.

for more information, find our manual at https://github.com/adobe/helix-cli

Available Commands

up

Server Options

AEM Options

Options

import

Server Options

AEM Importer Options

content

The content command set lets you check out your da.live content into a local content/ folder, edit it offline, inspect and merge changes against the remote, and push updates back. It follows a git-like workflow (stage, commit, push) and uses an internal git repository inside content/ to track your edits.

Typical workflow:

$ aem content clone            # fetch remote content into ./content
$ # edit files under ./content
$ aem content status           # see what changed
$ aem content diff             # compare local vs remote
$ aem content add <path>       # stage changes
$ aem content commit -m "..."  # commit staged changes
$ aem content push             # upload to da.live

When content/ is present, aem up automatically serves matching paths from it, so you can preview local edits before pushing.

Authentication

The content commands authenticate against da.live using Adobe IMS. On first use, a browser window opens for you to sign in; after a successful login the callback redirects to https://tools.aem.live/cli/logged-in. The resulting token is cached locally (in the project's .hlx/ folder, alongside the site token) and reused on subsequent invocations.

Subcommands

content clone

Downloads da.live sources into ./content/, initializes a git repository with a baseline commit, writes a .da-config.json (org, site, root path) inside content/, and records initial sync state.

Options:

Options org and site work together and are useful when the da.live org and site do not match the git owner and repo. This is mainly useful in the repoless scenario.

content status

Lists added, modified, and deleted files under content/ relative to the last sync — similar to git status, but scoped to content rather than code.

content diff

Shows the diff between your local working tree and the remote on da.live.

Options:

content merge

Merges remote content into local files when both sides have changed.

Options:

content add

Stages one or more paths so they will be included in the next commit. Works like git add.

Usage:

$ aem content add <path> [<path> ...]

content commit

Commits the currently staged changes with a message. Works like git commit.

Options:

content push

Uploads committed changes from content/ to da.live. You must content add and content commit first.

Options:

Options