astro registry dag add

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

Download a dag from the Astronomer Registry to your Astro project.

Usage

1astro registry dag add

When you run the command, the CLI prompts you for a dag ID to download. To retrieve the dag name, open the dag in the Astronomer registry and copy the URL between dags/ and /versions. For example, in the URL https://registry.astronomer.io/dags/upload_files_to_s3/versions/1.0.0, copy upload_files_to_s3.

Options

OptionDescriptionValid Values
<dag-id>The dag ID to download.Any valid dag ID. Must be the first option in the command.
--versionThe version of the dag to download.Any valid version.
--add-providersAttempt to add the required providers for the dag to requirements.txt.None.

Examples

1# Download version 1.0.0 of a dag called 'upload_files_to_s3'
2astro registry dag add upload_files_to_s3 --version 1.0.0