# Command-Line Mode

To perform repetitive or time consuming tasks like document annotation you can use the command-line options of ChemCuratior. If you want to run the application in a headless environment you are able to fully disable the GUI components and in this way you can run ChemCurator on your server in batch processing mode. Command line options are also callable from most common workflow tools like KNIME, Pipeline Pilot, etc this way you are able to integrate ChemCurator in your workflows. For annotating documents from command-line mode you need a separate D2S license beside of ChemCurator license.

# Command-Line Options

OptionsDescription
--createProject <sourceFile> <projectFolder>
Annotates the specified local file and creates a new ChemCurator project.
--shareProject <projectFolder>

Uploads the specified local project to the Integration Server.

--openProject <projectName>
The projects downloaded this way are always saved to the folder ~/ChemCurator on Linux/Unix systems and to the folder <USERHOME>\Documents\ChemCurator on Windows.
--downloadPatent <dataProvider> <patentNumber> <projectFolder>

The first parameter must be either "GooglePatents" or "IFIClaims".

--nogui --nosplash -J-Djava.awt.headless=true

Disable all GUI messages for command-line usage. (Cannot be used together with --openProject.)

Note: <projectFolder> denotes a local "working" folder on your machine (not a remote folder on the Integration Server).

# Integration Server Setup

Currently, the integration server location must be set within the graphical user interface of ChemCurator. Start the interactive mode (start the user interface).

• Navigate to Tools / Options... then Sharing Projects (on Mac machines: chemcurator / Preferences...). Alternatively, you can click on the Gear icon (highlighted in the picture below).
• Enable project sharing checkbox must be checked.
• Fill the Server URL with the URL of the integration server. This URL must be reachable from the machine you are using currently.
• You can optionally test the connection by clicking on the Test connection button.
• Click OK.

# Examples

## Simple command line annotation and upload

"C:\Program Files\ChemAxon\ChemCurator\bin\chemcurator64.exe" --createProject C:\Users\user\Documents\comp.pdf C:\Users\user\Documents\comp\ --nogui --nosplash -J-Djava.awt.headless=true

"C:\Program Files\ChemAxon\ChemCurator\bin\chemcurator64.exe" --shareProject C:\Users\user\Documents\comp\ --nogui --nosplash -J-Djava.awt.headless=true

## KNIME Integration

The following KNIME example workflow illustrates how you can recursively find and annotate all pdf documents in a selected folder (and sub-folders) and create ChemCurator project in a target folder via the createProject command line function of ChemCurator.