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

# Connections commands - Omni CLI

> Reference for the omni connections command group: database connections, dbt configuration, and schema refresh schedules.

Manage [database connections](/api/connections), [dbt configurations](/api/dbt), [schema refresh schedules](/api/schema-refresh-schedules), and [connection environments](/api/connection-environments).

```bash theme={null}
omni connections <command>
```

| Command                          | Description                      |
| -------------------------------- | -------------------------------- |
| `get`                            | Get a connection                 |
| `list`                           | List connections                 |
| `create`                         | Create a connection              |
| `update`                         | Update a connection              |
| `delete`                         | Delete a connection              |
| `connection-environments-create` | Create connection environments   |
| `connection-environments-update` | Update a connection environment  |
| `connection-environments-delete` | Delete a connection environment  |
| `dbt-get`                        | Get dbt configuration            |
| `dbt-delete`                     | Delete dbt configuration         |
| `dbt-update`                     | Update dbt configuration         |
| `dbt-rotate-signing-key`         | Rotate dbt commit signing key    |
| `dbt-environments-create`        | Create dbt environment           |
| `dbt-environments-update`        | Update dbt environment           |
| `dbt-environments-list`          | List dbt environments            |
| `dbt-environments-delete`        | Delete dbt environment           |
| `schedules-create`               | Create schema refresh schedule   |
| `schedules-delete`               | Delete a schema refresh schedule |
| `schedules-get`                  | Get a schema refresh schedule    |
| `schedules-list`                 | List schema refresh schedules    |
| `schedules-update`               | Update a schema refresh schedule |

```bash wrap theme={null}
# View all connections
omni connections list

# Create a connection environment
omni connections connection-environments-create --body '{"baseConnectionId": "<baseConnectionId>","environmentConnectionIds": "<environmentConnectionId>"}'

# View help for create command, including arguments and flag details
omni connections create --help
```

<Note>
  Every command in this group also accepts the [global flags](/developers/cli/reference/global-flags), including `--token`, `--profile`, `--format`, and `--compact`.
</Note>
