> ## 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://docs.fly.io/postgres](https://docs.fly.io/postgres) for more information about Managed Postgres.

## Usage

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

## Available Commands

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