diff --git a/flyctl/cmd/fly_mpg.mdx b/flyctl/cmd/fly_mpg.mdx index 79fe95d0f5..7c6e6094d0 100644 --- a/flyctl/cmd/fly_mpg.mdx +++ b/flyctl/cmd/fly_mpg.mdx @@ -19,6 +19,7 @@ fly mpg [command] [flags] * [databases](/flyctl/cmd/fly_mpg_databases) - Manage databases in a managed postgres cluster * [destroy](/flyctl/cmd/fly_mpg_destroy) - Destroy a managed Postgres cluster * [detach](/flyctl/cmd/fly_mpg_detach) - Detach a managed Postgres cluster from an app +* [fork](/flyctl/cmd/fly_mpg_fork) - Fork MPG cluster into a new cluster from its current data. * [list](/flyctl/cmd/fly_mpg_list) - List MPG clusters. * [proxy](/flyctl/cmd/fly_mpg_proxy) - Proxy to a MPG database * [restore](/flyctl/cmd/fly_mpg_restore) - Restore MPG cluster from a backup or a point in time into a new cluster. diff --git a/flyctl/cmd/fly_mpg_fork.mdx b/flyctl/cmd/fly_mpg_fork.mdx new file mode 100644 index 0000000000..c4e6901395 --- /dev/null +++ b/flyctl/cmd/fly_mpg_fork.mdx @@ -0,0 +1,33 @@ +--- +title: fly mpg fork +source_url: https://fly.io/docs/flyctl/mpg-fork/ +--- + +Fork a Managed Postgres cluster into a new cluster from the source's current +data, leaving the source cluster unchanged. The fork is provisioned +asynchronously in the same organization and billed separately. + +The fork uses the source cluster's plan unless --plan picks a different one, +including a smaller one. + +## Usage +``` +fly mpg fork [CLUSTER_ID] [flags] +``` +## Options + +``` + -h, --help help for fork + -n, --name string The name of the forked cluster (defaults to -fork) + --plan string The plan for the forked cluster: Basic, Starter, Launch, Scale, Performance (defaults to the source cluster's plan) +``` +## Global Options + +``` + -t, --access-token string Fly API Access Token + --debug Print additional logs and traces + --verbose Verbose output +``` +## See Also + +* [fly mpg](/flyctl/cmd/fly_mpg) - Manage Managed Postgres clusters.