Documentation Center

contentimporter run

contentimporter run is used to run a job specified in a configuration file.

Synopsis

contentimporter run [ path ] -c|--client-idclient-id -s|--client-secretclient-secret [ -f|--force ] [ --help ]

Description

Run a job that is specified in a configuration file.

You can find options' descriptions by typing contentimporter run --help at a command line.

Options

The options for contentimporter run are:

-f or --force
Force to convert and import all files even if the last import was successful. This is equivalent to deletinig the import artifacts.
-c or --client-id
The authentication client identifier.
-s or --client-secret
The authentication client secret.
--help
Prints out a short description for the command.
path
Location of the configuration file that specifies the job to run.

Paths that contain spaces must be enclosed in double quotes.

Configuration file

Here is an example of a configuration file that can be run with contentimporter run:


<importJob>
  <connectionId>UserName:YourUserName@foo.bar/ishws/infoshareauthor</connectionId>
  <actionType>ConvertAndImport</actionType>
  <fileFormatType>Generic</fileFormatType>
  <inputPath>C:\Import\In\</inputPath>
  <outputPath>C:\Import\Out\</outputPath>
  <repositoryPath>Import</repositoryPath>
  <waitAfterConversion>false</waitAfterConversion>
  <postXslFilePath>C:\Imports\ContentImporter.xsl</postXslFilePath>
  <reassignIds>false</reassignIds>
  <useFileNames>false</useFileNames>
  <defaultLanguage>
    <value>VLANGUAGEEN</value>
    <label>en</label>
    <description>English</description>
  </defaultLanguage>
  <defaultRendition>
    <value>VRESLOW</value>
    <label>Low</label>
    <description />
  </defaultRendition>
</importJob>

Examples

The following command runs the job specified in the C:\Imports\Job1.config file:

ContentImporter run C:\Imports\Job1.config