Upload and prepare from the command line

The loaddb command line tool allows you to upload and prepare a publication programmatically or in a batch mode.

About this task

Uploading from the command line lets you do the following:
  • Bypass the 500-file limitation of uploading through the user interface.
  • Upload one or more folders of resources to a publication and a language version.
  • Assign a top-level TOC resource.
  • Set the filter resource for a publication.
  • Programmatically execute Prepare for a publication.
  • Make the publication visible to readers.

Procedure

  1. At a command prompt, do one of the following:
    • On Windows, type ContentDelivery_home\loaddb.bat -Dlc.pubname=XXX [-Dlc.toc=YYY] [-Dlc.option=] loadpub
    • On Solaris and Linux, type ContentDelivery_home/loaddb.sh -Dlc.pubname=XXX [-Dlc.toc=YYY] [-Dlc.option=] loadpub
    where:
    OptionDescription
    ContentDelivery_homePath where Collaborative Review is installed.
    Dlc.pubname(Required) Publication name.

    Do not use spaces in the publication name.

    Dlc.publangPublication language. The default language is en.
    Dlc.pubdirLocation of the XML document files. The default location is "." (the current directory). Note that if a directory location contains a space, you must wrap it in quotes ("). This file path argument can support Microsoft Windows UNC paths (such as \\machine\folder\).

    This uploads files recursively through all subdirectories. Specify multiple directories by separating them with commas, for example, -Dlc.pubdir=dir1,dir2,dir3

    Dlc.tocName of the XML file that is the top-level TOC resource. The default file is help.ditamap.
    Dlc.installTo set the publication and the language version to visible, set to true. The default value is false.
    Dlc.filterName of the XML file to use for the Filter Resource field. This file would contain the filtering information to allow users to personalize their content for this publication.
  2. To upload a second language, set the same publication name and choose a different language using the Dlc.publang option.