airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [airflow] mik-laj commented on a change in pull request #7014: [AIRFLOW-XXXX] Add `airflow dags show` command guide
Date Fri, 03 Jan 2020 12:51:34 GMT
mik-laj commented on a change in pull request #7014: [AIRFLOW-XXXX] Add `airflow dags show`
command guide
URL: https://github.com/apache/airflow/pull/7014#discussion_r362798204
 
 

 ##########
 File path: docs/usage-cli.rst
 ##########
 @@ -68,3 +68,94 @@ If you’re using ``zsh``, add the following to your ``.zshrc``:
   autoload bashcompinit
   bashcompinit
   eval "$(register-python-argcomplete airflow)"
+
+Exporting DAGs to images
+------------------------
+
+The application has the functionality of saving DAG to image file. You can attach them to
the documentation
+or share with other people without having to send the DAG file and need to install the application.
+However, you need to have `Graphviz <https://graphviz.gitlab.io/download/>`_ installed
to generate it.
+
+For example, if you want to export ``example_gcp_datacatalog`` DAG then you can use the following
command:
+
+.. code-block:: bash
+
+  airflow dag show example_gcp_datacatalog
 
 Review comment:
   I will add a description of the `subdir` switch.  I wanted to show that CLI can also show
very complex DAGs. Then this features is the most useful.  Unfortunately, other examples are
relatively simple. This is just an example. so it can refer to specific operators. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message