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
Option
Description
Valid Values
<dag-id>
The dag ID to download.
Any valid dag ID. Must be the first option in the command.
--version
The version of the dag to download.
Any valid version.
--add-providers
Attempt to add the required providers for the dag to requirements.txt.
None.
Examples
# Download version 1.0.0 of a dag called 'upload_files_to_s3'astro registry dag add upload_files_to_s3 --version 1.0.0