Skip to content

import command

Frank Stüber edited this page Jun 17, 2026 · 4 revisions

The import Command

Imports data from a supported source format into an existing code list document file (in OpenCodeList format).

ocl import
    {--file | -f} <file-path>
    --from-format { csv | ssv }
    --from-file <file-path>

For an explanation of the command-line notation, see Command-Line Syntax.

Description

The import command imports data from a supported source format into an existing code list document file (in OpenCodeList format).

The following source formats are supported:

  • Comma-Separated Values (CSV)
  • Semicolon-Separated Values (SSV)

Examples

Example 1

Imports data from a CSV file into an existing OpenCodeList file.

ocl import --file countries.ocl --from-format csv --from-file countries.csv

Parameters

  • --file or -f

    Specifies the OpenCodeList file to be updated.

  • --from-format

    Specifies the source file format.

    Supported values:

    • csv
    • ssv
  • --from-file

    Specifies the source file to import.

Clone this wiki locally