> ## Documentation Index
> Fetch the complete documentation index at: https://astronomer.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# astro deployment connection create

<Info>
  This command is only available on Astro.
</Info>

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

## Usage

```sh wrap theme={null}
astro deployment connection create
```

## Options

| Option                 | Description                                                                                                                      | Possible Values           |
| ---------------------- | -------------------------------------------------------------------------------------------------------------------------------- | ------------------------- |
| `-d`,`--deployment-id` | The ID of the Deployment where you want to create a connection.                                                                  | Any valid Deployment ID   |
| `--deployment-name`    | The name of the Deployment where you want to create a connection. Use as an alternative to `<deployment-id>`.                    | Any valid Deployment name |
| `-w`,`--workspace-id`  | Create 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-id`       | The connection ID. Required.                                                                                                     | string                    |
| `-t`,`--conn-type`     | The connection type. Required.                                                                                                   | string                    |
| `--description`        | The connection description.                                                                                                      | string                    |
| `--extra`              | The extra field configuration, defined as a stringified JSON object.                                                             | string                    |
| `--host`               | The connection host.                                                                                                             | string                    |
| `--login`              | The connection login or username.                                                                                                | string                    |
| `--password`           | The connection password.                                                                                                         | string                    |
| `--port`               | The connection port.                                                                                                             | string                    |
| `--schema`             | The connection schema.                                                                                                           | string                    |

## Examples

```bash wrap theme={null}
# 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`](/docs/cli/v1.38/astro-deployment-connection-list)
* [`astro deployment connection update`](/docs/cli/v1.38/astro-deployment-connection-update)
