-
Notifications
You must be signed in to change notification settings - Fork 0
export command
Frank Stüber edited this page Jun 16, 2026
·
6 revisions
Exports data from an OpenCodeList file to a supported destination format.
ocl export
{--file | -f} <file-path>
--to-format {csv | xlsx}
--to-file <file-path>
For an explanation of the command-line notation, see Command-Line Syntax.
The export command exports data from an OpenCodeList file to a supported destination format.
The following destination formats are supported:
- Comma-Separated Values (CSV)
- Microsoft Excel (XLSX)
Exports data from an OpenCodeList file to a CSV file.
ocl export --file countries.ocl --to-format csv --to-file countries.csv
Exports data from an OpenCodeList file to an Excel workbook.
ocl export --file countries.ocl --to-format xlsx --to-file countries.xlsx
-
--fileSpecifies the source OpenCodeList file to export.
-
--to-formatSpecifies the destination file format.
Supported values:
* `csv` * `xlsx` -
--to-fileSpecifies the destination file to be created.