I think the reason for this is because you haven’t exported AIRFLOW_HOME.
Try doing:
AIRFLOW_HOME="/home/alex/airflow/dags" airflow list_dags.
If that’s not working than do two steps
export AIRFLOW_HOME="/home/alex/airflow/dags"
airflow list_dags
I believe this should work. Give it a go?