hybris: run a platform update via command line
by admin on Feb.28, 2017, under Programming
In hybris, it’s possible to run a platform update via command line. As of version 5.5, the updatesystem ant-target provides you with the same functionality as the hybris administration console (hac).
1. Go to the hybris administration console (hac) and click on Platform > Update
2. On the update page, tick the extensions you’d like to include and then click on “Dump configuration”
3. Copy/Paste this configuration in a newly created file called “config.json”
4. From the hybris/bin/platform/ directory, call ant using:
ant updatesystem -Dtenant=<my tenant> -DconfigFile=/path/to/my/config.json
For instance:
ant updatesystem -Dtenant=master -DconfigFile=config.json