HTTP Service interface for Package Management

Question

Is it possible to manage content packages on a command-line basis?

Answer, Resolution

Starting with CRX 1.4.1, an HTTP Service interface is available which allows for managing packages using the command-line, e.g. curl or wget.

Following operations are currently supported:

  • help overview
  • package upload (via POST)
  • listing of packages on remote repository
  • installation
  • deletion

To trigger the above operations, simply send requests using curl/wget to following URLs. Response is always XML:

// help overview 
$ curl http://<host>:<port>/crx/packmgr/service.jsp 
 
// package listing 
$ curl -u <uid>:<pwd> http://<host>:<port>/crx/packmgr/service.jsp?cmd=ls 
 
// package upload 
$ curl -u <uid>:<pwd> -F name=mycontent -F file=@cq-wcm-sling-content-5.1.11.jar \ 
       http://<host>:<port>/crx/packmgr/service.jsp 
 
// package install 
$ curl -u admin:admin http://<host>:<port>/crx/packmgr/service.jsp?cmd=inst&name=mycontent.zip 

Please have a look at the help screen which provides some more details on the available commands. For documentation on the HTTP Service interface for CRX 2.0, please refer to our official documentation [1] on docs.day.com.

Applies to

CRX >= 1.4.1

[1] http://dev.day.com/docs/en/crx/current/how_to/package_manager.html#Managing20on20Command%20Line

 Adobe

Krijg sneller en gemakkelijker hulp

Nieuwe gebruiker?

Adobe MAX 2024

Adobe MAX
De creativiteitsconferentie

14–16 oktober Miami Beach en online

Adobe MAX

De creativiteitsconferentie

14–16 oktober Miami Beach en online

Adobe MAX 2024

Adobe MAX
De creativiteitsconferentie

14–16 oktober Miami Beach en online

Adobe MAX

De creativiteitsconferentie

14–16 oktober Miami Beach en online