Get a single Environment Manager Airflow connection.
This command is only available on Astro.
Get a single Airflow connection by its ID or key.
Usage
astro env connection get <id-or-key>
Options
Option
Description
Possible Values
<id-or-key>
The ID or key of the connection to get.
Any valid connection ID or key
--format
The output format. Defaults to table.
table, json, or yaml
--include-secrets
Surface secret values in the output. Requires an Organization policy that allows it.
None
--workspace-id
Set the Workspace scope. Mutually exclusive with --deployment-id. Defaults to your current Workspace from CLI context.
Any valid Workspace ID
--deployment-id
Set the Deployment scope. Mutually exclusive with --workspace-id.
Any valid Deployment ID
Examples
# Get a Workspace connection by keyastro env connection get db_main --workspace-id <workspace-id># Get a connection as JSONastro env connection get db_main --workspace-id <workspace-id> --format json