Skip to main content

astro dev object import

info

The behavior and format of this command are the same for both Astro and Software.

Import Airflow variables, connections, and pools from a configuration file to a locally running Airflow environment.

Usage

After starting your local Airflow environment with astro dev start, run:

astro dev object import

By default, the command imports all variables, connections, and pools from airflow_settings.yaml to your project. You do not need to restart your environment for these changes to take effect.

Options

OptionDescriptionPossible Values
-c,--connectionsImport connections from a given local file``
-p,--poolsImport pools from a given local file``
-s,--settings-fileLocation of the file from which to import Airflow objects. The default file path is ~/.airflow_settings.yaml.Any valid filepath
-v,--variablesImport variables from a given local file``

Examples

astro dev object import --pools
# Imports pools from `airflow_settings.yaml` to a locally running Airflow environment

astro dev object import --settingsfile="myairflowobjects.yaml"
# Imports all Airflow objects from `myairflowobjects.yaml` to a locally running Airflow environment

Was this page helpful?

Sign up for Developer Updates

Get a summary of new Astro features once a month.

You can unsubscribe at any time.
By proceeding you agree to our Privacy Policy, our Website Terms and to receive emails from Astronomer.