astro-cli
Skill4 starsChanged 6 months agoMITView on GitHub
Expert-level guide for using the Astro CLI to manage Astronomer projects, develop locally, interact with Airflow APIs, and manage cloud deployments. You MUST load this skill when asked to use the astro command.
In this repository124 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/AGENTS.mdAGENTS.md
- .github/workflows/AGENTS.mdAGENTS.md
- .vscode/AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- agent-log-analysisSkill
- agent-mdSkill
- agent-md-writerSkill
- agent-skill-md-writerSkill
- agentskillsSkill
- agents-md-writerSkill
- ai-prompt-writerSkill
- ansibleSkill
- apache-airflow-apiSkill
- apache-airflow-dagsSkill
- astronomer-docsSkill
- awesome-copilotSkill
- brainstorm-agent-runsSkill
- brainstorm-github-prSkill
- brainstormSkill
- catSkill
- chrome-devtoolsSkill
- claude-docsSkill
- codeqlSkill
- code-reviewSkill
- code-tourSkill
- coding-standard-writerSkill
- context-aware-opsSkill
- copilot-cliSkill
- copilot-docsSkill
- critical-thinkingSkill
- datadog-agentSkill
- datadog-apiSkill
- datadog-mcpSkill
- datadog-monitorsSkill
- datadog-pulumiSkill
- devcontainerSkill
- dictationSkill
- direnvSkill
- dockerfileSkill
- dockerSkill
- docs-reviewSkill
- docs-writerSkill
- dot-claudeSkill
- dotfilesSkill
- dot-githubSkill
- editorconfigSkill
- fact-writerSkill
- gdpr-compliantSkill
- gh-agent-taskSkill
- gh-apiSkill
- gh-aw-compileSkill
- gh-aw-firewall-debugSkill
- gh-aw-firewallSkill
- gh-aw-newSkill
- gh-awSkill
- gh-aw-troubleshootingSkill
- gh-codespaceSkill
- gh-issueSkill
- gh-modelsSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 6 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
When initializing, configuring, or validating Astro/Airflow projects.
- Distinctive: line 14
When managing local Airflow environments (Docker or Standalone mode).
- Distinctive: line 15
When interacting with Astronomer cloud deployments, workspaces, and deployments.
- Very specific: line 16
When calling the Airflow REST API via the astro api airflow wrapper.
- Distinctive: line 17
When troubleshooting production deployments by viewing logs or managing environment variables.
- Distinctive: line 21
When writing generic Apache Airflow DAGs not specific to Astronomer CLI operations.
- Very specific: line 31
Use astro login to authenticate before attempting cloud API or deployment commands.
- Very specific: line 33
Use astro api airflow for authenticated API requests to both local and cloud environments.
- Very specific: line 97
Interactive Hangs: Avoid running interactive commands like astro login in non-interactive environments without appropriate flags.
- Distinctive: line 102
Read and navigate Astronomer documentation using llms.txt context.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Astro CLI Skill
<!-- markdownlint-disable MD013 MD023 MD031 MD032 -->When to Use This Skill
- When initializing, configuring, or validating Astro/Airflow projects.
- When managing local Airflow environments (Docker or Standalone mode).
- When interacting with Astronomer cloud deployments, workspaces, and deployments.
- When calling the Airflow REST API via the
astro api airflowwrapper. - When troubleshooting production deployments by viewing logs or managing environment variables.
When Not to Use
- When writing generic Apache Airflow DAGs not specific to Astronomer CLI operations.
Prerequisites
- Astro CLI (
astro) must be installed. - Docker must be running (for standard local development).
uvmust be installed (for Standalone local development).
Core Process
- Use
astro loginto authenticate before attempting cloud API or deployment commands. - For local development, use
astro dev startto launch Airflow. - Use
astro api airflowfor authenticated API requests to both local and cloud environments.
Step-by-Step Workflows
Project Setup & Configuration
- Initialize project:
astro dev init - Validate DAGs locally:
astro dev parse - Export connections/variables:
astro dev object export --connections --variables - Import connections/variables:
astro dev object import --connections --variables --file <path>
Managing Local Environment
- Start (Docker):
astro dev start - Start (Standalone):
astro dev start --standalone - Stop/Kill:
astro dev stop/astro dev kill(kill removes volumes/venv) - View local logs:
astro dev logs --scheduler(or--webserver,--workers) - Run Airflow CLI:
astro dev run dags list - Check proxy status:
astro dev proxy status(for multi-project routing)
Astro CLI Commands for Local Dev
- Get tab completions:
astro completion <shell>(script to get tab completions for Astro CLI cmds) - Get registry info:
astro api registry(Get info from the Airflow registry API) - Run bash in scheduler:
astro dev bash(Enter the scheduler container to run bash cmds) - Remove all containers:
astro dev kill(Remove all containers incl metab, connections) - Get stream/logs:
astro dev logs(Get logs -s / -d / -t / -a, -f for a stream) - Check import errors:
astro dev parse(Check for import errors) - Run tests in container:
astro dev pytest(Run tests in /tests in a container) - Run Airflow CLI command:
astro dev run(Run any Airflow CLI command!) - Force reparsing of DAGs:
astro dev run dags reserialize(Force reparsing of all Dags incl new ones) - Start locally with cloud connections:
astro dev start --deployment-id [deployment-id](For Astro customers start locally with the same AF connections as your deployment)
Cloud Deployment Management
- Switch workspace:
astro workspace switch <WORKSPACE_ID> - List/Inspect deployments:
astro deployment list/astro deployment inspect <DEPLOYMENT_ID> - Create deployment:
astro deployment create --label <NAME> --executor celery - Deploy code (Full):
astro deploy <DEPLOYMENT_ID> - Deploy DAGs only:
astro deploy <DEPLOYMENT_ID> --dags(requiresdag-deploy-enabled) - Manage variables:
astro deployment variable create --deployment-id <ID> --key <KEY> --value <VAL> --secret
Troubleshooting Cloud Deployments
- View deployment logs:
astro deployment logs <DEPLOYMENT_ID> --error - Filter logs by component:
astro deployment logs <ID> --scheduler(or--workers,--triggerer) - Search logs:
astro deployment logs <ID> --keyword "ImportError"
Executing Airflow REST API calls via Astro CLI
The astro api airflow command automatically handles authentication for your current context.
Examples:
- List DAGs:
astro api airflow get_dags - Get DAG details:
astro api airflow get_dag -p dag_id=<dag_id> - Trigger DAG run:
astro api airflow trigger_dag_run -p dag_id=<dag_id> -F conf[key]=value - List task instances:
astro api airflow get_task_instances -p dag_id=<dag_id> -p dag_run_id=~ - Filter with jq:
astro api airflow get_dags -q '.dags[].dag_id'
Common Pitfalls
- Missing Authentication: Forgetting to run
astro loginbefore cloud operations. - Context Mismatch: Running commands in the wrong workspace or against the wrong deployment. Always check
astro workspace listorastro deployment list. - Standalone Version Pinning: Standalone mode requires Airflow 3.x/Runtime 13.x+.
- Interactive Hangs: Avoid running interactive commands like
astro loginin non-interactive environments without appropriate flags.
Related Skills
- astronomer-docs: Read and navigate Astronomer documentation using llms.txt context.
- apache-airflow-api: Execute Apache Airflow Stable REST API queries, manage DAGs, backfills, connections, variables, and assets.
- Managing Astro Local Environment
- Troubleshooting Astro Deployments
References
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

