Skip to content

Command Line Options ​

Basic Syntax ​

bash
DICOMCapacitorService.exe [options]

Options are processed in the order given. Put --path first when combining it with options that read or write files in the configuration directory, such as --activation-code.

Service Options ​

  • --path=DIR, -p DIR: Sets the directory containing the configuration files. The directory must already exist. Without this option:

    • Windows: %ProgramData%\Flux Inc\DICOM Capacitor\
    • macOS/Linux: $HOME/.local/Flux Inc/DICOM Capacitor/ for the user running the service

    The macOS installer and Flux-assisted macOS/Linux deployments pass --path=/var/lib/dicom-capacitor/data explicitly. Linux release packages use a different unit; see Linux release packages.

Configuration Options ​

  • --activation-code=CODE: Saves the product activation code and exits
  • --activate: Run the interactive activation flow and exit
  • --no-storage-scu, -ns: Disables the Storage SCU
  • --no-worklist-scu, -nw: Disables the Worklist SCU
  • --no-prepare, -np: Disables preparation, which is the process of preparing files for storage
  • --save-config, -s: Saves the current settings to the config.yml file. Be careful with this option, as it will overwrite the existing config.yml file.
  • --config.<setting>=VALUE: Overrides a config.yml setting for this run, e.g. --config.myAeTitle=MY_AE. See Command Line Overrides.

Remote Configuration ​

These options push the local configuration bundle to Configatorium. See configatorium for the bundle contents and the settings they use.

  • --configatorium-push: Pushes the configuration bundle and exits. The exit code is 0 on success and 1 on failure.
  • --configatorium-url=URL: Configatorium base URL for this push. Takes precedence over configatorium.url in config.yml, which takes precedence over the built-in default.
  • --configatorium-identifier=ID: Configuration code for this installation. Takes precedence over configatorium.identifier and is saved to config.yml. When no identifier is configured, one is generated and saved on the first push.

Output Options ​

  • --console, -c: Force log output to the console (useful for debugging)
  • --log=DIR: Set the log output directory (overrides the default log path)
  • --version: Display the current version and exit
  • --status: Display the activation/license status and exit

API Options ​

The HTTP management API is configured via the api: section in config.yml, not via command-line flags. See Settings → api and the HTTP API reference.

Development Options ​

  • --mutate SRC_AE DST_AE IN_DCM_FILE OUT_DCM_FILE, -m ...: Applies the mutations defined in mutations.yml to a single DICOM file and writes the result. Intended for testing.
  • --quit, -q: Exit after running commands

Examples ​

Set Activation ​

bash
DICOMCapacitorService.exe --activation-code=XXXX-XXXX-XXXX

On macOS or Linux, point at the service's data directory:

bash
DICOMCapacitorService --path=/var/lib/dicom-capacitor/data --activation-code=XXXX-XXXX-XXXX

Push Configuration ​

bash
DICOMCapacitorService --path=/var/lib/dicom-capacitor/data --configatorium-push

Development Usage ​

bash
# Process single file
DICOMCapacitorService.exe --mutate SRC_AE DST_AE input.dcm output.dcm