Generating a publication from the command line
Complete the following steps to generate a publication from the command line using LiveContent Central's IETP Packaging tool.
Procedure
- Depending on your operating system, open a Windows command prompt or Linux terminal with administrative privileges.
- On the command prompt, navigate to the [LCC_home]/distribution-service directory, where the IETP Packaging tool is located.
- To publish a publication
On Windows, enter the following command
On Linux, enter the following commandlcccollectionpub.exe -P --cfg=[config] --pubpath=<folder path|ZIP path> --pmcfile=<pmcfile> --dmlfile=[dmlfile] --overwritelcccollectionpub.bin -P --cfg=[config] --pubpath=<folder path|ZIP path> --pmcfile=<pmcfile> --dmlfile=[dmlfile] --overwritewhereIf you have successfully executed this command, your publication has been stored in the Distribution service and maybe extracted when building an IETP.- The parameter -P is used to publish a publication.
cfgis the file path to the properties file, lcccollectionpub.properties. This parameter is optional.pubpathis the path to the directory or ZIP file that contains the publication.pmcfileis the publication module file. The filename for this XML file is often prefixed with PMC-. For example. PMC-BIKE09.xml.dmlfileis the data module list file. This XML file is optional and the filenames for such files are often prefixed with DML-. For example. DML-BIKE09.xml.overwriteis an optional boolean parameter. Setting this parameter totrueoverwrites previously published data.