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

  1. Depending on your operating system, open a Windows command prompt or Linux terminal with administrative privileges.
  2. On the command prompt, navigate to the [LCC_home]/distribution-service directory, where the IETP Packaging tool is located.
  3. To publish a publication
    On Windows, enter the following command
    lcccollectionpub.exe -P --cfg=[config] --pubpath=<folder path|ZIP path> --pmcfile=<pmcfile> --dmlfile=[dmlfile] --overwrite
    On Linux, enter the following command
    lcccollectionpub.bin -P --cfg=[config] --pubpath=<folder path|ZIP path> --pmcfile=<pmcfile> --dmlfile=[dmlfile] --overwrite
    where
    • The parameter -P is used to publish a publication.
    • cfg is the file path to the properties file, lcccollectionpub.properties. This parameter is optional.
    • pubpath is the path to the directory or ZIP file that contains the publication.
    • pmcfile is the publication module file. The filename for this XML file is often prefixed with PMC-. For example. PMC-BIKE09.xml.
    • dmlfile is 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.
    • overwrite is an optional boolean parameter. Setting this parameter to true overwrites previously published data.
    If you have successfully executed this command, your publication has been stored in the Distribution service and maybe extracted when building an IETP.