Skip to main content

Documentation Index

Fetch the complete documentation index at: https://astronomer-preview.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

The behavior and format of this command are the same for both Astro and Astro Private Cloud.
Stop your Airflow environment, rebuild your Astro project into a Docker image, and restart your Airflow environment with the new Docker image. This command can be used to rebuild an Astro project and run it locally. For more information, read Build and run a project locally.

Usage

astro dev restart

Options

OptionDescriptionPossible Values
--build-secretsRun docker build --secret to mount a secret value to your Docker image.id=<your-secret-id>, src=<path-to-secret> . See Docker documentation.
-e,--envPath to your environment variable file. Default is .envValid filepaths
-i, --image-nameThe name of a pre-built custom Docker image to use with your project. The image must be available on your local machine.A valid name for a pre-built Docker image based on Astro Runtime
-k, --killKill all running containers and remove all data before restarting. Equivalent to running astro dev kill followed by astro dev start.None

Examples

$ astro dev restart --env=/users/username/documents/myfile.env