conveyor project upgrade-dags
Upgrade the DAGs of a project to be compatible with Airflow 3
Synopsis
Upgrade the DAGS in this project to be compatible with Airflow 3. The configuration is also valid on Airflow 2.11.0 environment, so you can already upgrade your dags. More details on the rules that are used, can be found in the Airflow docs. Note that the AIR311 rules are not compatible with Airflow 2.11.0 which is why they are not included.
conveyor project upgrade-dags [flags]
Examples
To execute the command showing the changes that would be made without applying them, run:
$ conveyor project upgrade-dags
To execute the command and apply the changes, run:
$ conveyor project upgrade-dags --fix
To overwrite the rules that are applied to your dags, use:
$ conveyor project upgrade-dags --code-rule AIR301 --code-rule AIR302
Options
--airflow-dag-image string Set this if you want to use a custom Airflow image for upgrading the DAGs
--code-rule stringArray The Ruff rules to use when analyzing the DAGs (default [AIR301,AIR302,AIR312])
--fix Fix the issues that were identified in the DAGs
-h, --help help for upgrade-dags
Options inherited from parent commands
--debug Show debug output
--no-browser NO_BROWSER=true Do not automatically open a browser at login instead print the url to the command line. You can also use the environment variable NO_BROWSER=true.
-o, --output string Change the output. Valid options are table or json (default "table")
--quiet QUIET=true Quiet down the output. You can also use the environment variable QUIET=true.
See also
- conveyor project - Commands on projects