---
title: "Create a Postgres 18 cluster with flyctl"
date: "2026-12-01"
author: "Vincent Charlebois"
url: "https://fly.io/changelog/create-a-postgres-18-cluster-with-flyctl/"
discussion: "https://community.fly.io/t/create-a-postgres-18-cluster-with-flyctl/29224"
---

# Create a Postgres 18 cluster with flyctl

You can now pick Postgres 18 when creating a Managed Postgres (MPG) cluster with flyctl.
You could already pick it in the dashboard; as of [flyctl v0.5.15](https://github.com/superfly/flyctl/releases/tag/v0.5.15), you can also run: 

```bash
fly mpg create --pg-major-version 18
```

If you leave off the flag, you’ll now get Postgres 17, just like in the dashboard. You can still choose 16. We’ve updated the [Managed Postgres docs](https://docs.fly.io/postgres#what-is-managed-postgres) to list all supported versions.

Already running 16 or 17 and want to upgrade to 18? There’s no in-place major version upgrade yet. To move to 18, create a new cluster, then dump and restore your database. The [import guide](https://docs.fly.io/postgres/import) walks you through that process. If you give it a try, let us know how it goes.
