export

Definition

Exports all connections to stdout or a file.

Usage

$ airflow connections export [-h] [--file-format {json,yaml,env}]
                           [--format {json,yaml,env}]
                           [--serialization-format {json,uri}] [-v]
                           file

Arguments

Parameter Description

file

Output file path for exporting connections

--file-format

File format for the export. Possible values: json, yaml, env

--format

File format to use for the export. Deprecated. Use -–file-format instead

--serialization-format

When exporting the ENV format, defines how connections should be serialized. Possible values: json, uri (default)

-h, --help

Print out the help manual for this command

-v, --verbose

Make logging output more verbose

Examples

The following command will export the connections into JSON format:

$ airflow connections export /tmp/connections.json

Output example:

Connections successfully exported to /tmp/connections.json.
Found a mistake? Seleсt text and press Ctrl+Enter to report it