Command Reference¶
This page is generated automatically from the dcclib command's own --help output, so it
always reflects the installed version. For an introduction, installation instructions, and
the shared --format options, see the CLI overview.
dcclib¶
Usage:
dcclib [OPTIONS] COMMAND [ARGS]...
Options:
-v, --version Show the version and exit.
-h, --help Show this message and exit.
dcclib convert¶
Convert DCC XML files to JSON.
Usage:
dcclib convert [OPTIONS] COMMAND [ARGS]...
Options:
-h, --help Show this message and exit.
dcclib convert to-json¶
Convert a DCC XML file to JSON.
Usage:
dcclib convert to-json [OPTIONS] XML_PATH
Options:
-o, --output PATH Path to write the output JSON to.
-h, --help Show this message and exit.
dcclib extract¶
Extract information like formulae and files from a DCC XML file.
Usage:
dcclib extract [OPTIONS] COMMAND [ARGS]...
Options:
-h, --help Show this message and exit.
dcclib extract files¶
Extract files from a DCC XML.
Usage:
dcclib extract files [OPTIONS] XML_PATH INDEX
Options:
-o, --output PATH Path to write the output to.
-r, --ring [administrativeData|measurementResults|comment|document]
Filter files by ring.
-f, --format [plain|table|json]
Output format (default: table)
-h, --help Show this message and exit.
dcclib extract formulae¶
Evaluate a formula from an XML file.
Usage:
dcclib extract formulae [OPTIONS] XML_PATH
Options:
-v, --variable KEY=DECIMAL_VALUE,DECIMAL_VALUE,...
Specify variables in the form of
key=decimal_value.
-f, --format [plain|json] Output format (default: plain)
-h, --help Show this message and exit.
dcclib signature¶
Signs and verifies DCC XML files.
Usage:
dcclib signature [OPTIONS] COMMAND [ARGS]...
Options:
-h, --help Show this message and exit.
dcclib signature sign¶
Signs a DCC XML file using a certificate.
Usage:
dcclib signature sign [OPTIONS] CERT_PATH KEY_PATH XML_PATH
Options:
-o, --output PATH Path to write the output to.
-h, --help Show this message and exit.
dcclib signature verify¶
Verifies the signature of a DCC XML file and extracts the signed XML content.
Usage:
dcclib signature verify [OPTIONS] CA_CERT_PATH XML_PATH
Options:
-o, --output PATH Path to write the signed XML content to.
-f, --format [plain|json] Output format (default: plain)
-h, --help Show this message and exit.
dcclib transform¶
Transform an XML file with stylesheets.
Usage:
dcclib transform [OPTIONS] COMMAND [ARGS]...
Options:
-h, --help Show this message and exit.
dcclib transform xslt¶
Transform an XML file with an XSLT file.
Usage:
dcclib transform xslt [OPTIONS] XML_PATH XSLT_PATH
Options:
-o, --output PATH Path to write the output to.
-h, --help Show this message and exit.
dcclib validate¶
Validate a DCC XML file.
Usage:
dcclib validate [OPTIONS] COMMAND [ARGS]...
Options:
-h, --help Show this message and exit.
dcclib validate all¶
Run XSD and Schematron validation on a DCC XML file.
Usage:
dcclib validate all [OPTIONS] XML_PATH
Options:
-r, --release TEXT Release version of the XSD schema to
validate against (e.g. '3.3.0' or 'v3.3.0').
--xsd-schema FILE Path to a custom XSD schema file.
--schematron FILE Path to a custom schematron (.sch) or SVRL
(.xml) file.
-f, --format [plain|table|json|junit]
Output format (default: table)
-h, --help Show this message and exit.
dcclib validate schematron¶
Validate an DCC XML file against the DCC schematron.
Usage:
dcclib validate schematron [OPTIONS] XML_PATH
Options:
-s, --schematron FILE Path to the schematron file to validate
against.
-f, --format [plain|table|json|junit]
Output format (default: table)
-h, --help Show this message and exit.
dcclib validate xsd¶
Validate an DCC XML file against the DCC schema.
Usage:
dcclib validate xsd [OPTIONS] XML_PATH
Options:
-r, --release TEXT Release version of the schema to validate
against (e.g. '3.3.0' or 'v3.3.0').
-s, --schema FILE Path to the schema file to validate against.
-f, --format [plain|table|json|junit]
Output format (default: table)
-h, --help Show this message and exit.