Skip to main content

astro config set

Description

Update any part of the current configuration of your Astro project as defined in the .astro/config.yaml file. The configuration in this file contains details about how your project runs in a local Airflow environment, including your Postgres username and password, your webserver port, and your project name.

Usage

Within your Astro project directory, run:

astro config set <option> <value>

Options

OptionDescriptionPossible Values
cloud.api.protocolThe type of protocol to use when calling the Airflow API in a local Airflow environmenthttp, https
cloud.api.portThe port to use when calling the Airflow API in a local environmentAny available port
contextThe context for your Astro projectAny available context
local.registryThe location of your local Docker container running AirflowAny available port
postgres.userYour username for the Postgres metadata databaseAny string
postgres.passwordYour password for the Postgres metadata databaseAny string
postgres.hostYour hostname for the Postgres metadata databaseAny string
postgres.portYour port for the Postgres metadata databaseAny available port
project.nameThe name of your Astro projectAny string
webserver.portThe port for the webserver in your local Airflow environmentAny available port
show_warningsDetermines whether warning messages appear when starting up a local Airflow environmenttrue, false
info

Some possible configurations are not documented here because they are used only on Astronomer Software.

Examples

## Set your webserver port to 8081
$ astro config set webserver.port 8081