astro env connection update

This command is only available on Astro.

Update an existing Airflow connection, identified by its ID or key. Provide only the fields you want to change.

Usage

$astro env connection update <id-or-key>

Options

OptionDescriptionPossible Values
<id-or-key>The ID or key of the connection to update.Any valid connection ID or key
-t,--typeThe connection type, for example postgres or http.Any valid Airflow connection type
--hostThe connection host.Any string
-l,--loginThe connection login or username.Any string
-p,--passwordThe connection password. If omitted alongside --type, the CLI reads it from stdin when piped, or prompts for it with the input hidden.Any string
--portThe connection port.Any valid port number
--schemaThe connection schema.Any string
--extraExtra configuration, defined as a stringified JSON object.A stringified JSON object
--auto-linkWorkspace scope only. Automatically link the connection to all Deployments in the Workspace, including future ones.None
--workspace-idSet the Workspace scope. Mutually exclusive with --deployment-id. Defaults to your current Workspace from CLI context.Any valid Workspace ID
--deployment-idSet the Deployment scope. Mutually exclusive with --workspace-id.Any valid Deployment ID

Examples

$# Update only the host of a Workspace connection
$astro env connection update db_main --workspace-id <workspace-id> --type postgres --host db-new.example.com