potiuk 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_r362764008
 
 

 ##########
 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
+for the documentation, or send another without having to send the DAG file and 
install the application at
+the other person. However, you need to have `Graphviz 
<https://graphviz.gitlab.io/download/>`_ installed.
+
+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
+
+After passing the ``dag_id`` parameter itself, the command will print DAG to 
the screen in the DOT format.
 
 Review comment:
   ```suggestion
   After passing the ``dag_id`` parameter, the command will print DAG to the 
screen in the DOT format.
   ```

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to