With bash and Airflow CLI
airflow dags list | awk -F '|' '{print $1}' | while read line ; do airflow dags pause $line ; done