Using ldcpublish

Using ldcpublish#

Command-Line#

ldcpublish <project-file> [-desc:description text] -host:repositoryServer -port:serverPort -app:appName -track:projectTrack -version:versionNumber -user:name -password:password

ldcpublish <project-file> [-desc:description text] -repository:repositoryName -track:projectTrack -version:versionNumber

Note

The second example (above) is using a saved repostiory configuration. When the configuration contains a username and password, this is used by ldcpublish.

Publishes a new snapshot (a Lattix project) to the repository.

Examples#

  • ldcpublish proj.ldz -url:http://serverName:port/LattixWeb -track:projName -version:6.1 -user:your-name -password:your-password -date:2025-07-28

    Publishes proj.ldz as version 6.1 to the track projName, with the date 2025-07-28 (July 28, 2025)

  • ldcpublish proj.ldz -repository:TestRepository -track:projName -version:4.2.1 -user:your-name -password:your-password

    Publishes proj.ldz as version 4.2.1 to the track projName. Note that to use this command, you must have set up a TestRepository using Lattix LDM to point to the server, port and app.

  • ldcpublish proj.ldz -repository:TestRepository -track:projName -version:V1.0 -user:your-name -password:your-password

    Publishes proj.ldz as version V1.0 to the track projName.

  • ldcpublish proj.ldz -repository:TestRepository -track:projName -version:LATEST -user:your-name -password:your-password

    Publishes proj.ldz using the latest version in the repository to the track projName.

  • ldcpublish proj.ldz -url:http://serverName:port/LattixWeb -track:projName -version:LATEST -user:your-name -password:your-password

    Publishes proj.ldz using the latest version in the repository to the track projName.

Various formats are supported for the date:

  • MM/dd/yy (07/31/25)

  • MM/dd/yyyy (07/31/2025)

  • yyyy-MM-dd (2025-07-31)

  • yyyy-MM-ddThh:mm:ss (2025-07-31T11:50:32)

Success or Failure#

Return success or failure to the calling script, where failure is the inability to complete its processing.