For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
      • AstroFully-managed data operations, powered by Apache Airflow.
      • Astro Private CloudRun Airflow-as-a-service in your environment.
      • Professional ServicesExpert Airflow services for your enterprise's success.
    • Tools
      • Cosmos
      • Orbiter
      • CLI
      • AI SDK
      • Agents
      • Blueprint
      • UpdatesThe State of Airflow 2026See the insights from over 5,800 data practitioners in the full report. Download Now ➔
  • Customers
  • Docs
    • Insights
      • Blog
      • Webinars
      • Resource Library
      • Events
    • Education
      • Academy
      • What is Airflow?
  • Pricing
Get Started Free
    • Astro CLI
    • Quickstart
    • CLI reference
      • astro completion
      • astro api
      • astro auth
      • astro config
      • astro context
      • astro dbt
      • astro deploy
      • astro deployment
        • astro deployment airflow upgrade
          • astro deployment connection copy
          • astro deployment connection create
          • astro deployment connection list
          • astro deployment connection update
        • astro deployment create
        • astro deployment delete
        • astro deployment hibernate
        • astro deployment inspect
        • astro deployment list
        • astro deployment logs
        • astro deployment runtime migrate
        • astro deployment runtime upgrade
        • astro deployment service-account
        • astro deployment team
        • astro deployment update
        • astro deployment user
        • astro deployment wake-up
      • astro dev
      • astro ide
      • astro login
      • astro logout
      • astro organization
      • astro otto
      • astro remote
      • astro run
      • astro team
      • astro telemetry
      • astro user create
      • astro version
      • astro workspace

Product

  • Platform Overview
  • Astro
  • Astro Observe
  • Astro Private Cloud
  • Security & Trust
  • Pricing

Tools & Services

  • Cosmos
  • Docs
  • Professional Services
  • Product Updates

Use Cases

  • AI Ops
  • Data Observability
  • ETL/ELT
  • ML Ops
  • Operational Analytics
  • All Use Cases

Industries

  • Financial Services
  • Gaming
  • Retail
  • Manufacturing
  • Healthcare
  • All Industries

Resources

  • Academy
  • eBooks & Guides
  • Blog
  • Webinars
  • Events
  • The Data Flowcast Podcast
  • All Resources

Airflow

  • What is Airflow
  • Airflow on Astro
  • Airflow 3.0
  • Airflow Upgrades
  • Airflow Use Cases
  • Airflow 2.x End of Life

Company

  • Our Story
  • Customers
  • Newsroom
  • Careers
  • Contact

Support

  • Knowledge Base
  • Status
  • Contact Support
GitHubYouTubeLinkedInx
  • Legal
  • Privacy
  • Terms of Service
  • Consent Preferences

  • Do Not Sell or Share My Personal information
  • Limit the Use Of My Sensitive Personal Information

Apache Airflow®, Airflow, and the Airflow logo are trademarks of the Apache Software Foundation. Copyright © Astronomer 2026. All rights reserved.

LogoLogo
CLI referenceastro deploymentastro deployment connection

astro deployment connection create

Edit this page
Built with
This command is only available on Astro.

Create an Airflow connection in a Deployment’s metadata database.

Usage

1astro deployment connection create

Options

OptionDescriptionPossible Values
-d,--deployment-idThe ID of the Deployment where you want to create a connection.Any valid Deployment ID
--deployment-nameThe name of the Deployment where you want to create a connection. Use as an alternative to <deployment-id>.Any valid Deployment name
-w,--workspace-idCreate a connection for a Deployment that is not in your current Workspace. If not specified, your current Workspace is assumed.Any valid Workspace ID
-i,--conn-idThe connection ID. Required.string
-t,--conn-typeThe connection type. Required.string
--descriptionThe connection description.string
--extraThe extra field configuration, defined as a stringified JSON object.string
--hostThe connection host.string
--loginThe connection login or username.string
--passwordThe connection password.string
--portThe connection port.string
--schemaThe connection schema.string

Examples

$# create connection called my-connection stored in the Deployment with an ID of cl03oiq7d80402nwn7fsl3dmv
$astro deployment connection create --deployment-id cl03oiq7d80402nwn7fsl3dmv --conn-id my-connection --conn-type http
$
$# create connections stored in the Deployment "My Deployment"
$astro deployment connection create --deployment-name="My Deployment" --conn-id my-connection --conn-type http

Related Commands

  • astro deployment connection list
  • astro deployment connection update