| name | managing-astro-local-env |
| description | Manage local Airflow environment with Astro CLI. Use when the user wants to start, stop, or restart Airflow, view logs, troubleshoot containers, or fix environment issues. For project setup, see setting-up-astro-project. |
Astro Local Environment
This skill helps manage a local Airflow environment using the Astro CLI.
Note: These are external CLI actions. For runtime inspection inside the VS Code extension, use the extension tools instead.
Start / Stop / Restart
astro dev start
astro dev stop
astro dev kill
astro dev restart
astro dev restart --scheduler
astro dev restart --webserver
Default credentials: admin / admin
Restart after modifying: requirements.txt, packages.txt, Dockerfile
Check Status
astro dev ps
View Logs
astro dev logs
astro dev logs --scheduler
astro dev logs --webserver
astro dev logs -f
Access Container Shell
astro dev bash
astro dev run airflow info
astro dev run airflow dags list
Troubleshooting
| Issue | Solution |
|---|
| Port 8080 in use | Stop other containers or edit .astro/config.yaml |
| Container won't start | astro dev kill then astro dev start |
| Package install failed | Check requirements.txt syntax |
| DAG not appearing | Run astro dev parse to check for import errors |
| Out of disk space | docker system prune |
Reset Environment
astro dev kill
astro dev start
Upgrade Airflow
Test compatibility first
astro dev upgrade-test
Change version
-
Edit Dockerfile:
FROM quay.io/astronomer/astro-runtime:13.0.0
-
Restart:
astro dev kill && astro dev start
Related Skills
- setting-up-astro-project
- authoring-dags
- testing-dags