set

Definition

Creates a variable.

Usage

$ airflow variables set [-h] [-j] [-v] key VALUE

Arguments

Parameter Description

key

Variable key

VALUE

Variable value

--description

Variable description (optional)

-j, --json

Serialize JSON variable

-h, --help

Print out the help manual for this command

-v, --verbose

Make logging output more verbose

Examples

Example command that creates a test variable:

$ airflow variables set x 1

Output example:

Variable x created
Found a mistake? Seleсt text and press Ctrl+Enter to report it