export

Definition

Exports roles from a database to a JSON file without copying their permissions.

Usage

$ airflow roles export [-h] [-p] [-v] file

Arguments

Parameter Description

file

The name of the JSON file with the exported roles

-p, --pretty

Format output JSON file by sorting role names and indenting by 4 spaces

-h, --help

Print out the help manual for this command

-v, --verbose

Make logging output more verbose

Examples

Example command to export roles:

$ airflow roles export /tmp/exported-roles.json
Found a mistake? Seleсt text and press Ctrl+Enter to report it