Use the CLI¶
The package registers cwl2datacite as a Transpiler-Mate plugin. Convert a CWL
document with:
transpiler-mate cwl2datacite SOURCE --output datacite.json
SOURCE is the CWL document whose metadata should be converted. The command
writes DataCite Metadata Schema 4.6 JSON to the path given by --output.
Select an output path¶
The default output is datacite.json in the current directory. To write to a
different location, pass a path to --output:
transpiler-mate cwl2datacite workflow.cwl --output build/metadata.json
Missing parent directories are created automatically.
View command help¶
transpiler-mate cwl2datacite --help
The plugin currently targets DataCite 4.6 only. Do not use the generated JSON as evidence of compatibility with another DataCite schema version without a separate conversion or validation step.