Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
astronomer avatar

Managing Astro Deployments

  • 422 installs
  • 416 repo stars
  • Updated August 4, 2026
  • astronomer/agents

managing-astro-deployments is a Claude Code skill that guides Astro CLI commands to authenticate, manage workspaces, and create, update, delete, or deploy Apache Airflow DAGs and images to Astronomer production deploymen

About

managing-astro-deployments is an agent skill from astronomer/agents that encodes production deployment workflows for Astronomer Astro using the Astro CLI. The SKILL.md walks through OAuth login with astro login, workspace switching, listing and inspecting deployments, and lifecycle operations to create, update, or delete production environments with executor, HA, and resource settings. It documents four deploy modes—full, DAG-only, image-only, and force—and shows how to promote DAGs from staging to production, rotate deployment API tokens for CI/CD, and enable fast DAG-only iteration. Developers reach for managing-astro-deployments when Airflow pipelines are ready to ship on Astro and they need repeatable CLI steps instead of guessing deployment flags. The skill pairs with managing-astro-local-env for local dev and troubleshooting-astro-deployments for production incidents.

  • Astro deployment lifecycle
  • Airflow environment management
  • Multi-environment orchestration
  • Release and upgrade coordination
  • Astronomer platform operations

Managing Astro Deployments by the numbers

  • 422 all-time installs (skills.sh)
  • Ranked #284 of 1,435 DevOps & CI/CD skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/astronomer/agents --skill managing-astro-deployments

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs422
repo stars416
Last updatedAugust 4, 2026
Repositoryastronomer/agents

How do you deploy Airflow DAGs to Astro production?

Manage Astronomer Astro deployment lifecycles, environments, upgrades, and release configuration for Apache Airflow pipelines running in production.

Who is it for?

Data engineers and platform teams already on Astronomer Astro who need agent-guided Astro CLI steps for production deployment lifecycle and promotion workflows.

Skip if: Developers still authoring or testing DAGs locally should use managing-astro-local-env or testing-dags instead of this production deployment skill.

When should I use this skill?

The user mentions astro deploy, Astronomer production deployments, workspace switching, DAG-only deploys, deployment API tokens, or promoting Airflow code from staging to production.

What you get

Authenticated Astro CLI context, configured production deployments, deployed DAGs or container images, and deployment API tokens for CI/CD pipelines.

  • Production Astro deployments
  • Deployed DAGs or container images
  • Deployment API tokens for CI/CD

By the numbers

  • Documents 4 Astro CLI deploy modes: full, DAG-only, image-only, and force
  • References 3 companion skills: managing-astro-local-env, troubleshooting-astro-deployments, and setting-up-astro-project

Files

skill.mdMarkdownGitHub ↗

Astro Deployment Management

This skill helps you manage production Astronomer deployments using the Astro CLI.

For local development, see the managing-astro-local-env skill.
For production troubleshooting, see the troubleshooting-astro-deployments skill.

---

Authentication

All deployment operations require authentication:

# Login to Astronomer (opens browser for OAuth)
astro login

Authentication tokens are stored locally for subsequent commands. Run this before any deployment operations.

---

Workspace Management

Deployments are organized into workspaces:

# List all accessible workspaces
astro workspace list

# Switch to a specific workspace
astro workspace switch <WORKSPACE_ID>

Workspace context is maintained between sessions. Most deployment commands operate within the current workspace context.

---

List and Inspect Deployments

# List deployments in current workspace
astro deployment list

# List deployments across all workspaces
astro deployment list --all

# Inspect specific deployment (detailed info)
astro deployment inspect <DEPLOYMENT_ID>

# Inspect by name (alternative to ID)
astro deployment inspect --deployment-name data-service-stg

What inspect Shows

  • Deployment status (HEALTHY, UNHEALTHY)
  • Runtime version and Airflow version
  • Executor type (CELERY, KUBERNETES, LOCAL)
  • Scheduler configuration (size, count)
  • Worker queue settings (min/max workers, concurrency, worker type)
  • Resource quotas (CPU, memory)
  • Environment variables
  • Last deployment timestamp and current tag
  • Webserver and API URLs
  • High availability status

---

Create Deployments

# Create with default settings
astro deployment create

# Create with specific executor
astro deployment create --label production --executor celery
astro deployment create --label staging --executor kubernetes

# Executor options:
#   - celery: Best for most production workloads
#   - kubernetes: Best for dynamic scaling, isolated tasks
#   - local: Best for development only

---

Update Deployments

# Enable DAG-only deploys (faster iteration)
astro deployment update <DEPLOYMENT_ID> --dag-deploy-enabled

# Update other settings (use --help for full options)
astro deployment update <DEPLOYMENT_ID> --help

---

Delete Deployments

# Delete a deployment (requires confirmation)
astro deployment delete <DEPLOYMENT_ID>

Destructive: This cannot be undone. All DAGs, task history, and metadata will be lost.

---

Deploy Code to Production

Full Deploy

Deploy both DAGs and Docker image (required when dependencies change):

astro deploy <DEPLOYMENT_ID>

Use when:

  • Dependencies changed (requirements.txt, packages.txt, Dockerfile)
  • First deployment of new project
  • Significant infrastructure changes

DAG-Only Deploy (Recommended for Iteration)

Deploy only DAG files, skip Docker image rebuild:

astro deploy <DEPLOYMENT_ID> --dags

Use when:

  • Only DAG files changed (Python files in dags/ directory)
  • Quick iteration during development
  • Much faster than full deploy (seconds vs minutes)

Requires: --dag-deploy-enabled flag set on deployment (see Update Deployments)

Image-Only Deploy

Deploy only Docker image, skip DAG sync:

astro deploy <DEPLOYMENT_ID> --image-only

Use when:

  • Only dependencies changed
  • Dockerfile or requirements updated
  • No DAG changes

Force Deploy

Bypass safety checks and deploy:

astro deploy <DEPLOYMENT_ID> --force

Caution: Skips validation that could prevent broken deployments.

---

Deployment API Tokens

Manage API tokens for programmatic access to deployments:

# List tokens for a deployment
astro deployment token list --deployment-id <DEPLOYMENT_ID>

# Create a new token
astro deployment token create \
  --deployment-id <DEPLOYMENT_ID> \
  --name "CI/CD Pipeline" \
  --role DEPLOYMENT_ADMIN

# Create token with expiration
astro deployment token create \
  --deployment-id <DEPLOYMENT_ID> \
  --name "Temporary Access" \
  --role DEPLOYMENT_ADMIN \
  --expiry 30  # Days until expiration (0 = never expires)

Roles:

  • DEPLOYMENT_ADMIN: Full access to deployment

Note: Token value is only shown at creation time. Store it securely.

---

Common Workflows

First-Time Production Deployment

# 1. Login
astro login

# 2. Switch to production workspace
astro workspace list
astro workspace switch <PROD_WORKSPACE_ID>

# 3. Create deployment
astro deployment create --label production --executor celery

# 4. Note the deployment ID, then deploy
astro deploy <DEPLOYMENT_ID>

Iterative DAG Development

# 1. Enable fast deploys (one-time setup)
astro deployment update <DEPLOYMENT_ID> --dag-deploy-enabled

# 2. Make DAG changes locally

# 3. Deploy quickly
astro deploy <DEPLOYMENT_ID> --dags

Promoting Code from Staging to Production

# 1. Deploy to staging first
astro workspace switch <STAGING_WORKSPACE_ID>
astro deploy <STAGING_DEPLOYMENT_ID>

# 2. Test in staging

# 3. Deploy same code to production
astro workspace switch <PROD_WORKSPACE_ID>
astro deploy <PROD_DEPLOYMENT_ID>

---

Configuration Management

# View CLI configuration
astro config get

# Set configuration value
astro config set <KEY> <VALUE>

# Check CLI version
astro version

# Upgrade CLI to latest version
astro upgrade

---

Tips

  • Use --dags flag for fast iteration (seconds vs minutes)
  • Always test in staging workspace before production
  • Use deployment inspect to verify deployment health before deploying
  • Deployment IDs are permanent, names can change
  • Most commands work with deployment ID; inspect also accepts --deployment-name
  • Set --dag-deploy-enabled once per deployment for fast deploys
  • Keep workspace context visible with astro workspace list (shows asterisk for current)

---

Related Skills

  • troubleshooting-astro-deployments: Investigate deployment issues, view logs, manage environment variables
  • managing-astro-local-env: Manage local Airflow development environment
  • setting-up-astro-project: Initialize and configure Astro projects

Related skills

How it compares

Pick managing-astro-deployments for Astro CLI production lifecycle and deploy commands; use deploying-airflow when you need broader Airflow deployment targets beyond Astronomer-managed Astro.

FAQ

What CLI tool does managing-astro-deployments use?

managing-astro-deployments uses the Astronomer Astro CLI. It starts with astro login for OAuth authentication, then workspace and deployment commands to list, create, update, delete, and deploy to production environments.

What deploy modes does Astro CLI support in this skill?

managing-astro-deployments documents four Astro deploy modes: full deploy, DAG-only deploy for fast iteration, image-only deploy, and force deploy. DAG-only is recommended when changing Python DAG files without rebuilding the container image.

When should I use managing-astro-deployments vs local env skill?

Use managing-astro-deployments for production Astronomer deployments, workspace management, and CI/CD tokens. Use managing-astro-local-env when starting, stopping, or debugging Airflow on a local Astro dev environment.

DevOps & CI/CDdeployinfra

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.