Commands
Notes from using Airflow on Mac OS, with Python 3.9.7.
Install airflow
pip3 install apache-airflow
Uninstall airflow
pip3 uninstall apache-airflow
Show installation location
pip3 show apache-airflow
Verify airflow installation
airflow version
Initialize database
airflow db init
List active dags
airflow dags list
Print tasks in “tutorial” DAG
airflow tasks list tutorial
Print hierarchy of tasks in “tutorial” DAG
airflow tasks list tutorial --tree
Setup
Create a new user
# create an admin user
airflow users create \
--username admin \
--firstname Peter \
--lastname Parker \
--role Admin \
--email spiderman@superhero.org