Skip to content

Package Manager API replacement #47

@jwadolowski

Description

@jwadolowski

At the time of writing all commands use old, XML-based Package Manager API located at /crx/packmgr/service.jsp.

Most recent AEM versions still support that API, but it's no longer documented.

In most cases it works just fine, but I recently encountered a few issues, which boil down to limitations of that API:

  • cqbld doesn't seem to work well if more than 1 version of given package exists
  • cqrun doesn't accept package version (in most cases the most recent will be installed)
  • cqdel removes the oldest package if more than 1 version exists
  • ...

The list is definitely not complete, but those issue affect my work most frequently.

Each Package Manager operation has JSON-based API equivalent:

  • cqls - use /crx/packmgr/list.jsp instead
  • cqbld - POST /crx/packmgr/service/script.html/etc/packages/<GROUP>/<NAME>-<VERSION>.zip does the trick these days
  • ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions