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

# fly postgres

Unmanaged Fly Postgres is not supported by Fly.io Support and users are responsible for operations, management, and disaster recovery. If you'd like a managed, supported solution, try 'fly mpg' (Managed Postgres).
Please visit [https://fly.io/docs/mpg/overview/](https://fly.io/docs/mpg/overview/) for more information about Managed Postgres.

## Usage

```
fly postgres [command] [flags]
```

## Available Commands

* [attach](/flyctl/cmd/fly_postgres_attach)	 - Attach a postgres cluster to an app
* [backup](/flyctl/cmd/fly_postgres_backup)	 - Backup commands
* [config](/flyctl/cmd/fly_postgres_config)	 - Show and manage Postgres configuration.
* [connect](/flyctl/cmd/fly_postgres_connect)	 - Connect to the Postgres console
* [create](/flyctl/cmd/fly_postgres_create)	 - Create a new Postgres cluster
* [db](/flyctl/cmd/fly_postgres_db)	 - Manage databases in a cluster
* [detach](/flyctl/cmd/fly_postgres_detach)	 - Detach a postgres cluster from an app
* [events](/flyctl/cmd/fly_postgres_events)	 - Track major cluster events
* [failover](/flyctl/cmd/fly_postgres_failover)	 - Failover to a new primary
* [import](/flyctl/cmd/fly_postgres_import)	 - Imports database from a specified Postgres URI
* [list](/flyctl/cmd/fly_postgres_list)	 - List postgres clusters
* [renew-certs](/flyctl/cmd/fly_postgres_renew-certs)	 - Renews the SSH certificates for the Postgres cluster.
* [restart](/flyctl/cmd/fly_postgres_restart)	 - Restarts each member of the Postgres cluster one by one.
* [users](/flyctl/cmd/fly_postgres_users)	 - Manage users in a postgres cluster

## Options

```
  -h, --help   help for postgres
```

## Global Options

```
  -t, --access-token string   Fly API Access Token
      --debug                 Print additional logs and traces
      --verbose               Verbose output
```

## See Also

* [fly](/flyctl/cmd/fly_help)	 - The Fly.io command line interface
