contentimporter run

contentimporter run 用于运行配置文件中指定的作业。

概要

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

说明

运行配置文件中指定的作业。

您可以通过在命令行键入 contentimporter run --help 来查找选项说明。

选项

contentimporter run 的选项包括:

-f--force
强制转换并导入所有文件,即使上次导入成功也不例外。这相当于删除导入工件。
-c--client-id
身份验证客户端标识符。
-s--client-secret
身份验证客户端密钥。
--help
打印命令的简短说明。
路径
指定要运行作业的配置文件的位置。

包含空格的路径必须括在双引号中。

配置文件

以下是可以使用 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>

示例

以下命令运行 C:\Imports\Job1.config 文件中指定的作业:

ContentImporter run C:\Imports\Job1.config