To use command-line publishing, you create a command line in the following format: 


\path\commandlinepublish <settings> /profilename:<profile_name> 


or


\path\commandlinepublish <settings> /profile:<profile_path> 


You can use either the profilename or profile parameter; you do not need to use both. The password parameter is optional. See the descriptions below for details.


<settings>
Path to the selection.xml file in the destination location for the published content.


/profilename
The name of the user profile to use for the publishing process. This profile must exist in the UserProfiles folder of the computer on which the publishing job is being run and the password must be stored with the profile.


/profile
The path and file name of a user profile, such as \path\<profile>.xml. If this is not an absolute path, it is interpreted as a path relative to the publishing utility's folder. Use this parameter to specify a profile that exists outside of the UserProfiles folder. The password must be stored with the profile.


You must put the path for the commandlinepublish.exe file in the batch file, or issue a command to change into the appropriate directory first. The commandlinepublish.exe must reside in and be executed from the folder where the Developer is installed. In addition, the location where the Developer is installed and the destination location for publishing must be in accessible locations.


Note: If the path to the commandlinepublish.exe or the settings file contains spaces, you must enclose the entire path in quotes.


Table of Contents