import

Definition

Imports variables from a JSON file.

Usage

$ airflow variables import [-h] [-a {overwrite,fail,skip}] [-v] file

Arguments

Parameter Description

file

The name of the JSON file to import variables from

-a, --action-on-existing-key

Action to take if a variable already exists. Possible values: overwrite, fail, skip. Default: overwrite

-h, --help

Print out the help manual for this command

-v, --verbose

Make logging output more verbose

Examples

To import variables from a file, run:

$ airflow variables import /tmp/variables.json
Found a mistake? Seleсt text and press Ctrl+Enter to report it