diff --git a/flyctl/cmd/fly_extensions.mdx b/flyctl/cmd/fly_extensions.mdx index ffb551d3f5..4fb70a0137 100644 --- a/flyctl/cmd/fly_extensions.mdx +++ b/flyctl/cmd/fly_extensions.mdx @@ -3,18 +3,24 @@ title: fly extensions source_url: https://docs.fly.io/flyctl/cmd/fly_extensions --- -Extensions are additional functionality that can be added to your Fly apps +Provision and manage services from Fly.io extension partners, such as +Tigris object storage, Sentry, Upstash Vector, Arcjet and Wafris, as well as +Fly Kubernetes clusters. Many extensions can be attached to an app, which +then gets the extension's credentials as secrets. + +Each extension has its own subcommand, such as `fly ext storage` or +`fly ext sentry`. Most start with a create command. ## Usage ``` fly extensions [command] [flags] ``` ## Available Commands -* [arcjet](/flyctl/cmd/fly_extensions_arcjet) - Provision and manage Arcjet -* [kubernetes](/flyctl/cmd/fly_extensions_kubernetes) - Provision and manage Kubernetes clusters -* [sentry](/flyctl/cmd/fly_extensions_sentry) - Setup a Sentry project for this app +* [arcjet](/flyctl/cmd/fly_extensions_arcjet) - Provision and manage Arcjet sites +* [kubernetes](/flyctl/cmd/fly_extensions_kubernetes) - Provision and manage Fly Kubernetes clusters +* [sentry](/flyctl/cmd/fly_extensions_sentry) - Provision and manage Sentry projects * [storage](/flyctl/cmd/fly_extensions_storage) - Provision and manage Tigris object storage buckets -* [vector](/flyctl/cmd/fly_extensions_vector) - Provision and manage Upstash Vector index +* [vector](/flyctl/cmd/fly_extensions_vector) - Provision and manage Upstash Vector indexes * [wafris](/flyctl/cmd/fly_extensions_wafris) - Provision and manage Wafris WAFs (Web Application Firewalls) ## Options diff --git a/flyctl/cmd/fly_extensions_arcjet.mdx b/flyctl/cmd/fly_extensions_arcjet.mdx index 6910795c3f..b3d2bd9506 100644 --- a/flyctl/cmd/fly_extensions_arcjet.mdx +++ b/flyctl/cmd/fly_extensions_arcjet.mdx @@ -3,8 +3,9 @@ title: fly extensions arcjet source_url: https://docs.fly.io/flyctl/cmd/fly_extensions_arcjet --- -Provision and manage Arcjet - +Provision and manage Arcjet sites for your Fly apps. Create one with +`fly ext arcjet create`, check it with `fly ext arcjet status`, and open +Arcjet's console with `fly ext arcjet dashboard`. ## Usage ``` @@ -31,4 +32,4 @@ fly extensions arcjet [command] [flags] ``` ## See Also -* [fly extensions](/flyctl/cmd/fly_extensions) - Extensions are additional functionality that can be added to your Fly apps +* [fly extensions](/flyctl/cmd/fly_extensions) - Provision and manage extensions for Fly apps diff --git a/flyctl/cmd/fly_extensions_arcjet_create.mdx b/flyctl/cmd/fly_extensions_arcjet_create.mdx index 749d7b45c3..542422a59b 100644 --- a/flyctl/cmd/fly_extensions_arcjet_create.mdx +++ b/flyctl/cmd/fly_extensions_arcjet_create.mdx @@ -3,8 +3,23 @@ title: fly extensions arcjet create source_url: https://docs.fly.io/flyctl/cmd/fly_extensions_arcjet_create --- -Create an Arcjet site +Create an Arcjet site. In an app directory, or with `--app`, the site is +attached to that app, and the command fails if the app already has one. +Otherwise the site belongs to an organization, which you pick from a +list unless you pass `--org` or set FLY_ORG. +The first time you use Arcjet you must accept its terms of service; +`--yes` accepts them, and is required to do so without a terminal. You +may also be asked for a name and region, unless you pass `--name` and +`--region`; `--yes` skips the name prompt but not the region one. +Without a terminal and outside an app, `--org` or FLY_ORG is required +too. + +For an app's site, the values Arcjet provides are set as secrets on the +app and its machines restart to pick them up; if the app hasn't been +deployed yet, they take effect on its first deploy. If any of those +secrets already exist, none are set, and the values are printed for you +to set yourself. ## Usage ``` @@ -30,4 +45,4 @@ fly extensions arcjet create [flags] ``` ## See Also -* [fly extensions arcjet](/flyctl/cmd/fly_extensions_arcjet) - Provision and manage Arcjet +* [fly extensions arcjet](/flyctl/cmd/fly_extensions_arcjet) - Provision and manage Arcjet sites diff --git a/flyctl/cmd/fly_extensions_arcjet_dashboard.mdx b/flyctl/cmd/fly_extensions_arcjet_dashboard.mdx index 42b64cc9dd..a33e104164 100644 --- a/flyctl/cmd/fly_extensions_arcjet_dashboard.mdx +++ b/flyctl/cmd/fly_extensions_arcjet_dashboard.mdx @@ -3,7 +3,14 @@ title: fly extensions arcjet dashboard source_url: https://docs.fly.io/flyctl/cmd/fly_extensions_arcjet_dashboard --- -Visit the Arcjet dashboard +Open the Arcjet console for a site in your browser, using a sign-in link +from Fly.io. Name the site as an argument, or run the command in an app +directory (or with `--app`) to use the app's site. With `--org`, or with +FLY_ORG set, it opens that organization's Arcjet dashboard instead, even +if you name a site. + +If you haven't accepted Arcjet's terms of service yet, you're asked to; +`--yes` accepts them, and is required to do so without a terminal. ## Usage ``` @@ -27,4 +34,4 @@ fly extensions arcjet dashboard [site_name] [flags] ``` ## See Also -* [fly extensions arcjet](/flyctl/cmd/fly_extensions_arcjet) - Provision and manage Arcjet +* [fly extensions arcjet](/flyctl/cmd/fly_extensions_arcjet) - Provision and manage Arcjet sites diff --git a/flyctl/cmd/fly_extensions_arcjet_destroy.mdx b/flyctl/cmd/fly_extensions_arcjet_destroy.mdx index 2a837d9b4e..f5769d00cf 100644 --- a/flyctl/cmd/fly_extensions_arcjet_destroy.mdx +++ b/flyctl/cmd/fly_extensions_arcjet_destroy.mdx @@ -3,7 +3,13 @@ title: fly extensions arcjet destroy source_url: https://docs.fly.io/flyctl/cmd/fly_extensions_arcjet_destroy --- -Permanently destroy an Arcjet site +Permanently destroy an Arcjet site. This can't be undone. Name the site +as an argument, or run the command in an app directory (or with `--app`) +to destroy the app's site. + +You're asked to confirm first. Pass `--yes` to skip the prompt; without +a terminal, `--yes` is required. The site's secrets are not removed from +the app; unset them with `fly secrets unset`. ## Usage ``` @@ -26,4 +32,4 @@ fly extensions arcjet destroy [name] [flags] ``` ## See Also -* [fly extensions arcjet](/flyctl/cmd/fly_extensions_arcjet) - Provision and manage Arcjet +* [fly extensions arcjet](/flyctl/cmd/fly_extensions_arcjet) - Provision and manage Arcjet sites diff --git a/flyctl/cmd/fly_extensions_arcjet_list.mdx b/flyctl/cmd/fly_extensions_arcjet_list.mdx index f84780fd84..68f26be266 100644 --- a/flyctl/cmd/fly_extensions_arcjet_list.mdx +++ b/flyctl/cmd/fly_extensions_arcjet_list.mdx @@ -3,7 +3,9 @@ title: fly extensions arcjet list source_url: https://docs.fly.io/flyctl/cmd/fly_extensions_arcjet_list --- -List your Arcjet sites +List the Arcjet sites you have access to, with the organization each one +belongs to. Pass `--org` or set FLY_ORG to list only one organization's +sites. ## Usage ``` @@ -25,4 +27,4 @@ fly extensions arcjet list [flags] ``` ## See Also -* [fly extensions arcjet](/flyctl/cmd/fly_extensions_arcjet) - Provision and manage Arcjet +* [fly extensions arcjet](/flyctl/cmd/fly_extensions_arcjet) - Provision and manage Arcjet sites diff --git a/flyctl/cmd/fly_extensions_arcjet_status.mdx b/flyctl/cmd/fly_extensions_arcjet_status.mdx index 85988043f4..a630266f49 100644 --- a/flyctl/cmd/fly_extensions_arcjet_status.mdx +++ b/flyctl/cmd/fly_extensions_arcjet_status.mdx @@ -3,8 +3,10 @@ title: fly extensions arcjet status source_url: https://docs.fly.io/flyctl/cmd/fly_extensions_arcjet_status --- -Show details about an Arcjet site setup - +Show an Arcjet site's name, primary region and status. Name the site as +an argument, or run the command in an app directory (or with `--app`) to +use the app's site. When the site is found through an app, the app's +name is shown too. ## Usage ``` @@ -27,4 +29,4 @@ fly extensions arcjet status [name] [flags] ``` ## See Also -* [fly extensions arcjet](/flyctl/cmd/fly_extensions_arcjet) - Provision and manage Arcjet +* [fly extensions arcjet](/flyctl/cmd/fly_extensions_arcjet) - Provision and manage Arcjet sites diff --git a/flyctl/cmd/fly_extensions_kubernetes.mdx b/flyctl/cmd/fly_extensions_kubernetes.mdx index 4a6efdca87..c5855d030d 100644 --- a/flyctl/cmd/fly_extensions_kubernetes.mdx +++ b/flyctl/cmd/fly_extensions_kubernetes.mdx @@ -3,8 +3,9 @@ title: fly extensions kubernetes source_url: https://docs.fly.io/flyctl/cmd/fly_extensions_kubernetes --- -Provision and manage Kubernetes clusters - +Provision and manage Fly Kubernetes clusters, which are in beta. Create +a cluster with `fly ext k8s create`, which writes a kubeconfig file for +kubectl. Fetch that file again later with `fly ext k8s save-kubeconfig`. ## Usage ``` @@ -14,7 +15,7 @@ fly extensions kubernetes [command] [flags] * [create](/flyctl/cmd/fly_extensions_kubernetes_create) - Provision a Kubernetes cluster for an organization * [destroy](/flyctl/cmd/fly_extensions_kubernetes_destroy) - Permanently destroy a Kubernetes cluster * [list](/flyctl/cmd/fly_extensions_kubernetes_list) - List your Kubernetes clusters -* [save-kubeconfig](/flyctl/cmd/fly_extensions_kubernetes_save-kubeconfig) - Save the kubeconfig file of your cluster +* [save-kubeconfig](/flyctl/cmd/fly_extensions_kubernetes_save-kubeconfig) - Save a Kubernetes cluster's kubeconfig to a file ## Options @@ -30,4 +31,4 @@ fly extensions kubernetes [command] [flags] ``` ## See Also -* [fly extensions](/flyctl/cmd/fly_extensions) - Extensions are additional functionality that can be added to your Fly apps +* [fly extensions](/flyctl/cmd/fly_extensions) - Provision and manage extensions for Fly apps diff --git a/flyctl/cmd/fly_extensions_kubernetes_create.mdx b/flyctl/cmd/fly_extensions_kubernetes_create.mdx index aed7229738..0d68411e29 100644 --- a/flyctl/cmd/fly_extensions_kubernetes_create.mdx +++ b/flyctl/cmd/fly_extensions_kubernetes_create.mdx @@ -3,8 +3,16 @@ title: fly extensions kubernetes create source_url: https://docs.fly.io/flyctl/cmd/fly_extensions_kubernetes_create --- -Provision a Kubernetes cluster for an organization +Provision a Fly Kubernetes cluster in an organization, which you pick +from a list unless you pass `--org` or set FLY_ORG. Fly Kubernetes is in +beta. You may also be asked for a name and region, unless you pass +`--name` and `--region`. Without a terminal, pass `--name`, `--region`, +and `--org` or FLY_ORG. +After the cluster is created, its kubeconfig is written to a file named +after the cluster, such as `my-cluster.kubeconfig.yml`, in the current +directory, or to the path given with `--output`, replacing any existing +file. Use it with kubectl to connect to the cluster. ## Usage ``` @@ -28,4 +36,4 @@ fly extensions kubernetes create [flags] ``` ## See Also -* [fly extensions kubernetes](/flyctl/cmd/fly_extensions_kubernetes) - Provision and manage Kubernetes clusters +* [fly extensions kubernetes](/flyctl/cmd/fly_extensions_kubernetes) - Provision and manage Fly Kubernetes clusters diff --git a/flyctl/cmd/fly_extensions_kubernetes_destroy.mdx b/flyctl/cmd/fly_extensions_kubernetes_destroy.mdx index d433274ee4..a6ec5faf94 100644 --- a/flyctl/cmd/fly_extensions_kubernetes_destroy.mdx +++ b/flyctl/cmd/fly_extensions_kubernetes_destroy.mdx @@ -3,7 +3,12 @@ title: fly extensions kubernetes destroy source_url: https://docs.fly.io/flyctl/cmd/fly_extensions_kubernetes_destroy --- -Permanently destroy a Kubernetes cluster +Permanently destroy a Fly Kubernetes cluster, given by name as the +argument. This can't be undone. + +You're asked to confirm first. Pass `--yes` to skip the prompt; without +a terminal, `--yes` is required. Find cluster names with +`fly ext k8s list`. ## Usage ``` @@ -24,4 +29,4 @@ fly extensions kubernetes destroy [name] [flags] ``` ## See Also -* [fly extensions kubernetes](/flyctl/cmd/fly_extensions_kubernetes) - Provision and manage Kubernetes clusters +* [fly extensions kubernetes](/flyctl/cmd/fly_extensions_kubernetes) - Provision and manage Fly Kubernetes clusters diff --git a/flyctl/cmd/fly_extensions_kubernetes_list.mdx b/flyctl/cmd/fly_extensions_kubernetes_list.mdx index 56f7e79346..58dbb7692f 100644 --- a/flyctl/cmd/fly_extensions_kubernetes_list.mdx +++ b/flyctl/cmd/fly_extensions_kubernetes_list.mdx @@ -3,7 +3,8 @@ title: fly extensions kubernetes list source_url: https://docs.fly.io/flyctl/cmd/fly_extensions_kubernetes_list --- -List your Kubernetes clusters +List the Fly Kubernetes clusters you have access to, with each cluster's +organization and primary region. ## Usage ``` @@ -23,4 +24,4 @@ fly extensions kubernetes list [flags] ``` ## See Also -* [fly extensions kubernetes](/flyctl/cmd/fly_extensions_kubernetes) - Provision and manage Kubernetes clusters +* [fly extensions kubernetes](/flyctl/cmd/fly_extensions_kubernetes) - Provision and manage Fly Kubernetes clusters diff --git a/flyctl/cmd/fly_extensions_kubernetes_save-kubeconfig.mdx b/flyctl/cmd/fly_extensions_kubernetes_save-kubeconfig.mdx index 83aa92e331..5817d9371f 100644 --- a/flyctl/cmd/fly_extensions_kubernetes_save-kubeconfig.mdx +++ b/flyctl/cmd/fly_extensions_kubernetes_save-kubeconfig.mdx @@ -3,7 +3,10 @@ title: fly extensions kubernetes save-kubeconfig source_url: https://docs.fly.io/flyctl/cmd/fly_extensions_kubernetes_save-kubeconfig --- -Save the kubeconfig file of your cluster +Fetch the kubeconfig for the cluster named in the argument and write it +to a file named after the cluster, such as `my-cluster.kubeconfig.yml`, +in the current directory, or to the path given with `--output`. The file +is readable only by you and replaces any existing file at that path. ## Usage ``` @@ -24,4 +27,4 @@ fly extensions kubernetes save-kubeconfig [cluster name] [flags] ``` ## See Also -* [fly extensions kubernetes](/flyctl/cmd/fly_extensions_kubernetes) - Provision and manage Kubernetes clusters +* [fly extensions kubernetes](/flyctl/cmd/fly_extensions_kubernetes) - Provision and manage Fly Kubernetes clusters diff --git a/flyctl/cmd/fly_extensions_sentry.mdx b/flyctl/cmd/fly_extensions_sentry.mdx index cbd9d24857..3920e4e6fb 100644 --- a/flyctl/cmd/fly_extensions_sentry.mdx +++ b/flyctl/cmd/fly_extensions_sentry.mdx @@ -3,8 +3,9 @@ title: fly extensions sentry source_url: https://docs.fly.io/flyctl/cmd/fly_extensions_sentry --- -Setup a Sentry project for this app - +Provision and manage Sentry error-tracking projects for your Fly apps. +Each app can have one project. Create it with `fly ext sentry create`, +then open its errors with `fly ext sentry dashboard`. ## Usage ``` @@ -13,7 +14,7 @@ fly extensions sentry [command] [flags] ## Available Commands * [create](/flyctl/cmd/fly_extensions_sentry_create) - Provision a Sentry project for a Fly.io app * [dashboard](/flyctl/cmd/fly_extensions_sentry_dashboard) - View application errors in the Sentry dashboard -* [destroy](/flyctl/cmd/fly_extensions_sentry_destroy) - Permanently destroy a Sentry project +* [destroy](/flyctl/cmd/fly_extensions_sentry_destroy) - Remove a Sentry project from Fly.io * [list](/flyctl/cmd/fly_extensions_sentry_list) - List your Sentry projects ## Options @@ -30,4 +31,4 @@ fly extensions sentry [command] [flags] ``` ## See Also -* [fly extensions](/flyctl/cmd/fly_extensions) - Extensions are additional functionality that can be added to your Fly apps +* [fly extensions](/flyctl/cmd/fly_extensions) - Provision and manage extensions for Fly apps diff --git a/flyctl/cmd/fly_extensions_sentry_create.mdx b/flyctl/cmd/fly_extensions_sentry_create.mdx index 26a87fac54..a93b3928f9 100644 --- a/flyctl/cmd/fly_extensions_sentry_create.mdx +++ b/flyctl/cmd/fly_extensions_sentry_create.mdx @@ -3,8 +3,17 @@ title: fly extensions sentry create source_url: https://docs.fly.io/flyctl/cmd/fly_extensions_sentry_create --- -Provision a Sentry project for a Fly.io app +Provision a Sentry project for an app. Run the command in an app +directory or pass `--app`; it fails if the app already has a Sentry +project. +The first time you use Sentry you must accept its terms of service; +`--yes` accepts them, and is required to do so without a terminal. + +The values Sentry provides are set as secrets on the app and its +machines restart to pick them up; if the app hasn't been deployed yet, +they take effect on its first deploy. If any of those secrets already +exist, none are set, and the values are printed for you to set yourself. ## Usage ``` @@ -27,4 +36,4 @@ fly extensions sentry create [flags] ``` ## See Also -* [fly extensions sentry](/flyctl/cmd/fly_extensions_sentry) - Setup a Sentry project for this app +* [fly extensions sentry](/flyctl/cmd/fly_extensions_sentry) - Provision and manage Sentry projects diff --git a/flyctl/cmd/fly_extensions_sentry_dashboard.mdx b/flyctl/cmd/fly_extensions_sentry_dashboard.mdx index 0ef0ceb5c5..ea71aafeee 100644 --- a/flyctl/cmd/fly_extensions_sentry_dashboard.mdx +++ b/flyctl/cmd/fly_extensions_sentry_dashboard.mdx @@ -3,7 +3,12 @@ title: fly extensions sentry dashboard source_url: https://docs.fly.io/flyctl/cmd/fly_extensions_sentry_dashboard --- -View application errors in the Sentry dashboard +Open the Sentry dashboard for an app's project in your browser, using a +sign-in link from Fly.io. Run the command in an app directory or pass +`--app`. + +If you haven't accepted Sentry's terms of service yet, you're asked to; +`--yes` accepts them, and is required to do so without a terminal. ## Usage ``` @@ -26,4 +31,4 @@ fly extensions sentry dashboard [flags] ``` ## See Also -* [fly extensions sentry](/flyctl/cmd/fly_extensions_sentry) - Setup a Sentry project for this app +* [fly extensions sentry](/flyctl/cmd/fly_extensions_sentry) - Provision and manage Sentry projects diff --git a/flyctl/cmd/fly_extensions_sentry_destroy.mdx b/flyctl/cmd/fly_extensions_sentry_destroy.mdx index ba4f6a95a3..67ea959294 100644 --- a/flyctl/cmd/fly_extensions_sentry_destroy.mdx +++ b/flyctl/cmd/fly_extensions_sentry_destroy.mdx @@ -3,7 +3,13 @@ title: fly extensions sentry destroy source_url: https://docs.fly.io/flyctl/cmd/fly_extensions_sentry_destroy --- -Permanently destroy a Sentry project +Remove a Sentry project from Fly.io's records. The project itself is not +deleted from your Sentry account. Name the project as an argument, or +run the command in an app directory (or with `--app`) to use the app's +project. + +You're asked to confirm first. Pass `--yes` to skip the prompt; without +a terminal, `--yes` is required. ## Usage ``` @@ -26,4 +32,4 @@ fly extensions sentry destroy [project-name] [flags] ``` ## See Also -* [fly extensions sentry](/flyctl/cmd/fly_extensions_sentry) - Setup a Sentry project for this app +* [fly extensions sentry](/flyctl/cmd/fly_extensions_sentry) - Provision and manage Sentry projects diff --git a/flyctl/cmd/fly_extensions_sentry_list.mdx b/flyctl/cmd/fly_extensions_sentry_list.mdx index e79710bb0a..4751188c49 100644 --- a/flyctl/cmd/fly_extensions_sentry_list.mdx +++ b/flyctl/cmd/fly_extensions_sentry_list.mdx @@ -3,7 +3,9 @@ title: fly extensions sentry list source_url: https://docs.fly.io/flyctl/cmd/fly_extensions_sentry_list --- -List your Sentry projects +List the Sentry projects you have access to, with the organization each +one belongs to. Pass `--org` or set FLY_ORG to list only one +organization's projects. ## Usage ``` @@ -25,4 +27,4 @@ fly extensions sentry list [flags] ``` ## See Also -* [fly extensions sentry](/flyctl/cmd/fly_extensions_sentry) - Setup a Sentry project for this app +* [fly extensions sentry](/flyctl/cmd/fly_extensions_sentry) - Provision and manage Sentry projects diff --git a/flyctl/cmd/fly_extensions_storage.mdx b/flyctl/cmd/fly_extensions_storage.mdx index 7b349997f4..50eaadc5a6 100644 --- a/flyctl/cmd/fly_extensions_storage.mdx +++ b/flyctl/cmd/fly_extensions_storage.mdx @@ -3,8 +3,12 @@ title: fly extensions storage source_url: https://docs.fly.io/flyctl/cmd/fly_extensions_storage --- -Provision and manage Tigris object storage buckets +Provision and manage Tigris object storage buckets. A bucket can be +attached to an app, which then gets the bucket's credentials as secrets, +or belong only to an organization. +Create a bucket with `fly storage create`, and see its settings with +`fly storage status`. ## Usage ``` @@ -32,4 +36,4 @@ fly extensions storage [command] [flags] ``` ## See Also -* [fly extensions](/flyctl/cmd/fly_extensions) - Extensions are additional functionality that can be added to your Fly apps +* [fly extensions](/flyctl/cmd/fly_extensions) - Provision and manage extensions for Fly apps diff --git a/flyctl/cmd/fly_extensions_storage_create.mdx b/flyctl/cmd/fly_extensions_storage_create.mdx index 4a0e67b9eb..299d168503 100644 --- a/flyctl/cmd/fly_extensions_storage_create.mdx +++ b/flyctl/cmd/fly_extensions_storage_create.mdx @@ -3,8 +3,27 @@ title: fly extensions storage create source_url: https://docs.fly.io/flyctl/cmd/fly_extensions_storage_create --- -Provision a Tigris object storage bucket +Provision a Tigris object storage bucket. In an app directory, or with +`--app`, the bucket is attached to that app, and the command fails if +the app already has one. Otherwise the bucket belongs to an +organization, which you pick from a list unless you pass `--org` or set +FLY_ORG. +Pass `--name` to choose the bucket name; otherwise you're asked for one, +and can leave it blank to have one generated. The first time you use +Tigris you must accept its terms of service. `--yes` accepts them and +skips the name prompt. Without a terminal, pass `--yes`, or just +`--name` if you've already accepted the terms; outside an app, `--org` +or FLY_ORG is required too. + +For an app's bucket, the credentials are set as secrets on the app and +its machines restart to pick them up; if the app hasn't been deployed +yet, they take effect on its first deploy. If any of those secrets +already exist, none are set. The credentials are always printed. + +To add a shadow bucket, pass all five of `--shadow-access-key`, +`--shadow-secret-key`, `--shadow-region`, `--shadow-name` and +`--shadow-endpoint`. ## Usage ``` diff --git a/flyctl/cmd/fly_extensions_storage_dashboard.mdx b/flyctl/cmd/fly_extensions_storage_dashboard.mdx index 7449d3a841..a15e68cd08 100644 --- a/flyctl/cmd/fly_extensions_storage_dashboard.mdx +++ b/flyctl/cmd/fly_extensions_storage_dashboard.mdx @@ -3,7 +3,14 @@ title: fly extensions storage dashboard source_url: https://docs.fly.io/flyctl/cmd/fly_extensions_storage_dashboard --- -Visit the Tigris dashboard +Open the Tigris web console for a bucket in your browser, using a +sign-in link from Fly.io. Name the bucket as an argument, or run the +command in an app directory (or with `--app`) to use the app's bucket. +With `--org`, or with FLY_ORG set, it opens that organization's Tigris +dashboard instead, even if you name a bucket. + +If you haven't accepted Tigris's terms of service yet, you're asked to; +`--yes` accepts them, and is required to do so without a terminal. ## Usage ``` diff --git a/flyctl/cmd/fly_extensions_storage_destroy.mdx b/flyctl/cmd/fly_extensions_storage_destroy.mdx index c88bc897f5..173039b4d8 100644 --- a/flyctl/cmd/fly_extensions_storage_destroy.mdx +++ b/flyctl/cmd/fly_extensions_storage_destroy.mdx @@ -3,7 +3,13 @@ title: fly extensions storage destroy source_url: https://docs.fly.io/flyctl/cmd/fly_extensions_storage_destroy --- -Permanently destroy a Tigris object storage bucket +Permanently destroy a Tigris object storage bucket. This can't be +undone. Name the bucket as an argument, or run the command in an app +directory (or with `--app`) to use the app's bucket. + +You're asked to confirm first. Pass `--yes` to skip the prompt; without +a terminal, `--yes` is required. The bucket's secrets are not removed +from the app; unset them with `fly secrets unset`. ## Usage ``` diff --git a/flyctl/cmd/fly_extensions_storage_list.mdx b/flyctl/cmd/fly_extensions_storage_list.mdx index 0643ff4429..e3f8892f5a 100644 --- a/flyctl/cmd/fly_extensions_storage_list.mdx +++ b/flyctl/cmd/fly_extensions_storage_list.mdx @@ -3,7 +3,9 @@ title: fly extensions storage list source_url: https://docs.fly.io/flyctl/cmd/fly_extensions_storage_list --- -List your Tigris object storage buckets +List the Tigris object storage buckets you have access to, with the +organization each one belongs to. Pass `--org` or set FLY_ORG to list +only one organization's buckets. ## Usage ``` diff --git a/flyctl/cmd/fly_extensions_storage_status.mdx b/flyctl/cmd/fly_extensions_storage_status.mdx index f46c894d39..f8fb66e782 100644 --- a/flyctl/cmd/fly_extensions_storage_status.mdx +++ b/flyctl/cmd/fly_extensions_storage_status.mdx @@ -3,8 +3,10 @@ title: fly extensions storage status source_url: https://docs.fly.io/flyctl/cmd/fly_extensions_storage_status --- -Show details about a Tigris storage bucket - +Show a Tigris bucket's name, status, whether it's public, and its shadow +bucket settings. Name the bucket as an argument, or run the command in +an app directory (or with `--app`) to use the app's bucket. When the +bucket is found through an app, the app's name is shown too. ## Usage ``` diff --git a/flyctl/cmd/fly_extensions_storage_update.mdx b/flyctl/cmd/fly_extensions_storage_update.mdx index 8191ad4c04..ea7a94dfa3 100644 --- a/flyctl/cmd/fly_extensions_storage_update.mdx +++ b/flyctl/cmd/fly_extensions_storage_update.mdx @@ -3,8 +3,22 @@ title: fly extensions storage update source_url: https://docs.fly.io/flyctl/cmd/fly_extensions_storage_update --- -Update an existing Tigris object storage bucket +Change the settings of an existing Tigris bucket, given by name as the +argument. You can make it public or private, set or clear a shadow +bucket, and set or clear a custom domain. Settings you don't pass stay +as they are, except within a shadow bucket. When the update succeeds, +the bucket's status is printed. +Setting a shadow bucket replaces its whole configuration, so pass all +five of `--shadow-access-key`, `--shadow-secret-key`, `--shadow-region`, +`--shadow-name` and `--shadow-endpoint`. Write-through is turned off +unless you also pass `--shadow-write-through`, which does nothing on its +own. + +Before a custom domain is set, you're asked to confirm that you've +created a DNS CNAME record pointing the domain at the bucket's name +followed by `.t3.tigrisbucket.io`. `--yes` skips the confirmation, and +is required without a terminal. ## Usage ``` diff --git a/flyctl/cmd/fly_extensions_vector.mdx b/flyctl/cmd/fly_extensions_vector.mdx index db037757db..b2a11e4a82 100644 --- a/flyctl/cmd/fly_extensions_vector.mdx +++ b/flyctl/cmd/fly_extensions_vector.mdx @@ -3,18 +3,19 @@ title: fly extensions vector source_url: https://docs.fly.io/flyctl/cmd/fly_extensions_vector --- -Provision and manage Upstash Vector index - +Provision and manage Upstash Vector indexes. An index can be attached to +an app, which then gets the index's credentials as secrets, or belong +only to an organization. Create one with `fly ext vector create`. ## Usage ``` fly extensions vector [command] [flags] ``` ## Available Commands -* [create](/flyctl/cmd/fly_extensions_vector_create) - Provision a Upstash Vector index -* [dashboard](/flyctl/cmd/fly_extensions_vector_dashboard) - Visit the Upstash Vector dashboard on the Upstash web console +* [create](/flyctl/cmd/fly_extensions_vector_create) - Provision an Upstash Vector index +* [dashboard](/flyctl/cmd/fly_extensions_vector_dashboard) - Open the Upstash Vector dashboard in your browser * [destroy](/flyctl/cmd/fly_extensions_vector_destroy) - Permanently destroy an Upstash Vector index -* [list](/flyctl/cmd/fly_extensions_vector_list) - List your Upstash Vector index +* [list](/flyctl/cmd/fly_extensions_vector_list) - List your Upstash Vector indexes * [status](/flyctl/cmd/fly_extensions_vector_status) - Show details about an Upstash Vector index ## Options @@ -31,4 +32,4 @@ fly extensions vector [command] [flags] ``` ## See Also -* [fly extensions](/flyctl/cmd/fly_extensions) - Extensions are additional functionality that can be added to your Fly apps +* [fly extensions](/flyctl/cmd/fly_extensions) - Provision and manage extensions for Fly apps diff --git a/flyctl/cmd/fly_extensions_vector_create.mdx b/flyctl/cmd/fly_extensions_vector_create.mdx index a537fb9148..36119e20a4 100644 --- a/flyctl/cmd/fly_extensions_vector_create.mdx +++ b/flyctl/cmd/fly_extensions_vector_create.mdx @@ -3,8 +3,24 @@ title: fly extensions vector create source_url: https://docs.fly.io/flyctl/cmd/fly_extensions_vector_create --- -Provision a Upstash Vector index +Provision an Upstash Vector index on the pay-as-you-go plan. In an app +directory, or with `--app`, the index is attached to that app, and the +command fails if the app already has one. Otherwise the index belongs to +an organization, which you pick from a list unless you pass `--org` or +set FLY_ORG. +You pick a similarity function and an embedding model from lists. If you +provide your own embeddings, you're asked for the number of dimensions +(default 128). There are no flags for these choices, so this command +needs a terminal. The first time you use Upstash Vector you must also +accept its terms of service; `--yes` accepts them. You may also be asked +for a name and region, unless you pass `--name` and `--region`. + +For an app's index, the credentials are set as secrets on the app and +its machines restart to pick them up; if the app hasn't been deployed +yet, they take effect on its first deploy. If any of those secrets +already exist, none are set, and the values are printed for you to set +yourself. ## Usage ``` @@ -30,4 +46,4 @@ fly extensions vector create [flags] ``` ## See Also -* [fly extensions vector](/flyctl/cmd/fly_extensions_vector) - Provision and manage Upstash Vector index +* [fly extensions vector](/flyctl/cmd/fly_extensions_vector) - Provision and manage Upstash Vector indexes diff --git a/flyctl/cmd/fly_extensions_vector_dashboard.mdx b/flyctl/cmd/fly_extensions_vector_dashboard.mdx index 36df6eeb8a..85bab15e56 100644 --- a/flyctl/cmd/fly_extensions_vector_dashboard.mdx +++ b/flyctl/cmd/fly_extensions_vector_dashboard.mdx @@ -3,7 +3,14 @@ title: fly extensions vector dashboard source_url: https://docs.fly.io/flyctl/cmd/fly_extensions_vector_dashboard --- -Visit the Upstash Vector dashboard on the Upstash web console +Open the Upstash web console for an app's Vector index in your browser, +using a sign-in link from Fly.io. Run the command in an app directory or +pass `--app`. With `--org`, or with FLY_ORG set, it opens that +organization's Upstash Vector dashboard instead. + +If you haven't accepted Upstash Vector's terms of service yet, you're +asked to; `--yes` accepts them, and is required to do so without a +terminal. ## Usage ``` @@ -27,4 +34,4 @@ fly extensions vector dashboard [flags] ``` ## See Also -* [fly extensions vector](/flyctl/cmd/fly_extensions_vector) - Provision and manage Upstash Vector index +* [fly extensions vector](/flyctl/cmd/fly_extensions_vector) - Provision and manage Upstash Vector indexes diff --git a/flyctl/cmd/fly_extensions_vector_destroy.mdx b/flyctl/cmd/fly_extensions_vector_destroy.mdx index 5052c560c6..013bd16a58 100644 --- a/flyctl/cmd/fly_extensions_vector_destroy.mdx +++ b/flyctl/cmd/fly_extensions_vector_destroy.mdx @@ -3,7 +3,13 @@ title: fly extensions vector destroy source_url: https://docs.fly.io/flyctl/cmd/fly_extensions_vector_destroy --- -Permanently destroy an Upstash Vector index +Permanently destroy an Upstash Vector index. This can't be undone. Name +the index as an argument, or run the command in an app directory (or +with `--app`) to destroy the app's index. + +You're asked to confirm first. Pass `--yes` to skip the prompt; without +a terminal, `--yes` is required. The index's secrets are not removed +from the app; unset them with `fly secrets unset`. ## Usage ``` @@ -26,4 +32,4 @@ fly extensions vector destroy [name] [flags] ``` ## See Also -* [fly extensions vector](/flyctl/cmd/fly_extensions_vector) - Provision and manage Upstash Vector index +* [fly extensions vector](/flyctl/cmd/fly_extensions_vector) - Provision and manage Upstash Vector indexes diff --git a/flyctl/cmd/fly_extensions_vector_list.mdx b/flyctl/cmd/fly_extensions_vector_list.mdx index 1beb65c5c7..d2d9fddf5d 100644 --- a/flyctl/cmd/fly_extensions_vector_list.mdx +++ b/flyctl/cmd/fly_extensions_vector_list.mdx @@ -3,7 +3,9 @@ title: fly extensions vector list source_url: https://docs.fly.io/flyctl/cmd/fly_extensions_vector_list --- -List your Upstash Vector index +List the Upstash Vector indexes you have access to, with each index's +organization and region. Pass `--org` or set FLY_ORG to list only one +organization's indexes. ## Usage ``` @@ -25,4 +27,4 @@ fly extensions vector list [flags] ``` ## See Also -* [fly extensions vector](/flyctl/cmd/fly_extensions_vector) - Provision and manage Upstash Vector index +* [fly extensions vector](/flyctl/cmd/fly_extensions_vector) - Provision and manage Upstash Vector indexes diff --git a/flyctl/cmd/fly_extensions_vector_status.mdx b/flyctl/cmd/fly_extensions_vector_status.mdx index 6aa4012de9..ac48278142 100644 --- a/flyctl/cmd/fly_extensions_vector_status.mdx +++ b/flyctl/cmd/fly_extensions_vector_status.mdx @@ -3,8 +3,10 @@ title: fly extensions vector status source_url: https://docs.fly.io/flyctl/cmd/fly_extensions_vector_status --- -Show details about an Upstash Vector index - +Show an Upstash Vector index's name, status and region. Name the index +as an argument, or run the command in an app directory (or with `--app`) +to use the app's index. When the index is found through an app, the +app's name is shown too. ## Usage ``` @@ -27,4 +29,4 @@ fly extensions vector status [name] [flags] ``` ## See Also -* [fly extensions vector](/flyctl/cmd/fly_extensions_vector) - Provision and manage Upstash Vector index +* [fly extensions vector](/flyctl/cmd/fly_extensions_vector) - Provision and manage Upstash Vector indexes diff --git a/flyctl/cmd/fly_extensions_wafris.mdx b/flyctl/cmd/fly_extensions_wafris.mdx index c25ac51bc7..42a8ebfceb 100644 --- a/flyctl/cmd/fly_extensions_wafris.mdx +++ b/flyctl/cmd/fly_extensions_wafris.mdx @@ -3,8 +3,9 @@ title: fly extensions wafris source_url: https://docs.fly.io/flyctl/cmd/fly_extensions_wafris --- -Provision and manage Wafris WAFs (Web Application Firewalls) - +Provision and manage Wafris web application firewalls for your Fly apps. +Each app can have one. Create it with `fly ext wafris create` and open +its dashboard with `fly ext wafris dashboard`. ## Usage ``` @@ -29,4 +30,4 @@ fly extensions wafris [command] [flags] ``` ## See Also -* [fly extensions](/flyctl/cmd/fly_extensions) - Extensions are additional functionality that can be added to your Fly apps +* [fly extensions](/flyctl/cmd/fly_extensions) - Provision and manage extensions for Fly apps diff --git a/flyctl/cmd/fly_extensions_wafris_create.mdx b/flyctl/cmd/fly_extensions_wafris_create.mdx index c81d32dfb3..a9fe0f8d80 100644 --- a/flyctl/cmd/fly_extensions_wafris_create.mdx +++ b/flyctl/cmd/fly_extensions_wafris_create.mdx @@ -3,8 +3,18 @@ title: fly extensions wafris create source_url: https://docs.fly.io/flyctl/cmd/fly_extensions_wafris_create --- -Provision a Wafris WAF +Provision a Wafris WAF for an app. Run the command in an app directory +or pass `--app`; it fails if the app already has a Wafris WAF. +The first time you use Wafris you must accept its terms of service; +`--yes` accepts them, and is required to do so without a terminal. You +may also be asked for a name and region, unless you pass `--name` and +`--region`; `--yes` skips the name prompt but not the region one. + +The values Wafris provides are set as secrets on the app and its +machines restart to pick them up; if the app hasn't been deployed yet, +they take effect on its first deploy. If any of those secrets already +exist, none are set, and the values are printed for you to set yourself. ## Usage ``` diff --git a/flyctl/cmd/fly_extensions_wafris_dashboard.mdx b/flyctl/cmd/fly_extensions_wafris_dashboard.mdx index 72e600db0f..6d7638ddab 100644 --- a/flyctl/cmd/fly_extensions_wafris_dashboard.mdx +++ b/flyctl/cmd/fly_extensions_wafris_dashboard.mdx @@ -3,7 +3,14 @@ title: fly extensions wafris dashboard source_url: https://docs.fly.io/flyctl/cmd/fly_extensions_wafris_dashboard --- -Visit the Wafris dashboard +Open the Wafris dashboard for a WAF in your browser, using a sign-in +link from Fly.io. Name the WAF as an argument, or run the command in an +app directory (or with `--app`) to use the app's WAF. With `--org`, or +with FLY_ORG set, it opens that organization's Wafris dashboard instead, +even if you name a WAF. + +If you haven't accepted Wafris's terms of service yet, you're asked to; +`--yes` accepts them, and is required to do so without a terminal. ## Usage ``` diff --git a/flyctl/cmd/fly_extensions_wafris_destroy.mdx b/flyctl/cmd/fly_extensions_wafris_destroy.mdx index 361e857fa0..b71019823f 100644 --- a/flyctl/cmd/fly_extensions_wafris_destroy.mdx +++ b/flyctl/cmd/fly_extensions_wafris_destroy.mdx @@ -3,7 +3,13 @@ title: fly extensions wafris destroy source_url: https://docs.fly.io/flyctl/cmd/fly_extensions_wafris_destroy --- -Permanently destroy a Wafris WAF +Permanently destroy a Wafris WAF. This can't be undone. Name the WAF as +an argument, or run the command in an app directory (or with `--app`) to +destroy the app's WAF. + +You're asked to confirm first. Pass `--yes` to skip the prompt; without +a terminal, `--yes` is required. The WAF's secrets are not removed from +the app; unset them with `fly secrets unset`. ## Usage ``` diff --git a/flyctl/cmd/fly_help.mdx b/flyctl/cmd/fly_help.mdx index d3f3c81336..4d96df7b1a 100644 --- a/flyctl/cmd/fly_help.mdx +++ b/flyctl/cmd/fly_help.mdx @@ -23,7 +23,7 @@ fly [flags] * [dig](/flyctl/cmd/fly_dig) - Make DNS requests against Fly.io's internal DNS server * [docs](/flyctl/cmd/fly_docs) - View Fly documentation * [doctor](/flyctl/cmd/fly_doctor) - The DOCTOR command allows you to debug your Fly environment -* [extensions](/flyctl/cmd/fly_extensions) - Extensions are additional functionality that can be added to your Fly apps +* [extensions](/flyctl/cmd/fly_extensions) - Provision and manage extensions for Fly apps * [feedback](/flyctl/cmd/fly_feedback) - Send feedback to Fly.io * [image](/flyctl/cmd/fly_image) - Manage app image * [incidents](/flyctl/cmd/fly_incidents) - Show incidents @@ -33,7 +33,7 @@ fly [flags] * [logs](/flyctl/cmd/fly_logs) - View app logs * [machine](/flyctl/cmd/fly_machine) - Manage Fly Machines. * [mcp](/flyctl/cmd/fly_mcp) - flyctl Model Context Protocol. -* [mpg](/flyctl/cmd/fly_mpg) - Manage Managed Postgres clusters. +* [mpg](/flyctl/cmd/fly_mpg) - Manage Managed Postgres clusters * [orgs](/flyctl/cmd/fly_orgs) - Commands for managing Fly organizations * [ping](/flyctl/cmd/fly_ping) - Test connectivity with ICMP ping messages * [platform](/flyctl/cmd/fly_platform) - Fly platform information diff --git a/flyctl/cmd/fly_mpg.mdx b/flyctl/cmd/fly_mpg.mdx index bcfe940227..4d426dca62 100644 --- a/flyctl/cmd/fly_mpg.mdx +++ b/flyctl/cmd/fly_mpg.mdx @@ -4,28 +4,34 @@ sidebarTitle: "Managed Postgres clusters (mpg)" source_url: https://docs.fly.io/flyctl/cmd/fly_mpg --- -Manage Managed Postgres clusters. +Manage Managed Postgres (MPG) clusters, the Postgres service that Fly.io +operates for you. You don't run its machines yourself; you work with +clusters, databases, users and backups through these commands. +Start with `fly mpg create`, then give an app its connection string +with `fly mpg attach` or open a psql session with `fly mpg connect`. +For the older, unmanaged Fly Postgres that runs as an app in your +organization, use `fly postgres`. ## Usage ``` fly mpg [command] [flags] ``` ## Available Commands -* [attach](/flyctl/cmd/fly_mpg_attach) - Attach a managed Postgres cluster to an app -* [backup](/flyctl/cmd/fly_mpg_backup) - Backup commands -* [connect](/flyctl/cmd/fly_mpg_connect) - Connect to a MPG database using psql -* [create](/flyctl/cmd/fly_mpg_create) - Create a new Managed Postgres cluster -* [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. +* [attach](/flyctl/cmd/fly_mpg_attach) - Attach a Managed Postgres cluster to an app +* [backup](/flyctl/cmd/fly_mpg_backup) - Manage Managed Postgres backups +* [connect](/flyctl/cmd/fly_mpg_connect) - Connect to a Managed Postgres database with psql +* [create](/flyctl/cmd/fly_mpg_create) - Create a Managed Postgres cluster +* [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 a Managed Postgres cluster into a new cluster +* [list](/flyctl/cmd/fly_mpg_list) - List Managed Postgres clusters in an organization * [maintenance-window](/flyctl/cmd/fly_mpg_maintenance-window) - Show or change a cluster's weekly maintenance window -* [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. -* [status](/flyctl/cmd/fly_mpg_status) - Show MPG cluster status. -* [users](/flyctl/cmd/fly_mpg_users) - Manage users in a managed postgres cluster +* [proxy](/flyctl/cmd/fly_mpg_proxy) - Proxy a local port to a Managed Postgres cluster +* [restore](/flyctl/cmd/fly_mpg_restore) - Restore a Managed Postgres cluster into a new cluster +* [status](/flyctl/cmd/fly_mpg_status) - Show the status of a Managed Postgres cluster +* [users](/flyctl/cmd/fly_mpg_users) - Manage users in a Managed Postgres cluster ## Options diff --git a/flyctl/cmd/fly_mpg_attach.mdx b/flyctl/cmd/fly_mpg_attach.mdx index d61775b455..8ebc20e6f5 100644 --- a/flyctl/cmd/fly_mpg_attach.mdx +++ b/flyctl/cmd/fly_mpg_attach.mdx @@ -3,8 +3,20 @@ title: fly mpg attach source_url: https://docs.fly.io/flyctl/cmd/fly_mpg_attach --- -Attach a managed Postgres cluster to an app. This command will add a secret to the specified app - containing the connection string for the database. +Attach a Managed Postgres cluster to an app by setting a secret on the app +(DATABASE_URL unless --variable-name says otherwise) that holds the +cluster's connection string. The app and the cluster must be in the same +organization, and the command fails if the app already has a secret with +that name. The connection string, including the password, is printed. + +With no cluster ID, you pick one from the app's organization in a +terminal; without a terminal, the cluster ID is required. In a terminal, +you're also asked which user and database to use, with the option to +create new ones, unless you pass --username and --database. Without a +terminal and without those flags, the cluster's default credentials and +database are used. + +Remove the link with `fly mpg detach`. ## Usage ``` @@ -29,4 +41,4 @@ fly mpg attach [flags] ``` ## See Also -* [fly mpg](/flyctl/cmd/fly_mpg) - Manage Managed Postgres clusters. +* [fly mpg](/flyctl/cmd/fly_mpg) - Manage Managed Postgres clusters diff --git a/flyctl/cmd/fly_mpg_backup.mdx b/flyctl/cmd/fly_mpg_backup.mdx index 1c540c4f9d..40a084ae52 100644 --- a/flyctl/cmd/fly_mpg_backup.mdx +++ b/flyctl/cmd/fly_mpg_backup.mdx @@ -3,16 +3,16 @@ title: fly mpg backup source_url: https://docs.fly.io/flyctl/cmd/fly_mpg_backup --- -Backup commands - +List and create backups of a Managed Postgres cluster. To restore a +backup into a new cluster, use `fly mpg restore`. ## Usage ``` fly mpg backup [command] [flags] ``` ## Available Commands -* [create](/flyctl/cmd/fly_mpg_backup_create) - Create MPG cluster backup. -* [list](/flyctl/cmd/fly_mpg_backup_list) - List MPG cluster backups. +* [create](/flyctl/cmd/fly_mpg_backup_create) - Create a backup of a Managed Postgres cluster +* [list](/flyctl/cmd/fly_mpg_backup_list) - List backups of a Managed Postgres cluster ## Options @@ -28,4 +28,4 @@ fly mpg backup [command] [flags] ``` ## See Also -* [fly mpg](/flyctl/cmd/fly_mpg) - Manage Managed Postgres clusters. +* [fly mpg](/flyctl/cmd/fly_mpg) - Manage Managed Postgres clusters diff --git a/flyctl/cmd/fly_mpg_backup_create.mdx b/flyctl/cmd/fly_mpg_backup_create.mdx index 6f7ebc1281..747b05c553 100644 --- a/flyctl/cmd/fly_mpg_backup_create.mdx +++ b/flyctl/cmd/fly_mpg_backup_create.mdx @@ -3,7 +3,14 @@ title: fly mpg backup create source_url: https://docs.fly.io/flyctl/cmd/fly_mpg_backup_create --- -Create a backup for a Managed Postgres cluster. +Queue a backup of a Managed Postgres cluster. The backup is full unless +--type incr asks for an incremental one. The command returns once the +backup is queued, not when it finishes; check on it with +`fly mpg backup list`. + +With no cluster ID, you pick an organization (unless FLY_ORG is set) and a +cluster from lists in a terminal; without a terminal, the cluster ID is +required. ## Usage ``` @@ -24,4 +31,4 @@ fly mpg backup create [flags] ``` ## See Also -* [fly mpg backup](/flyctl/cmd/fly_mpg_backup) - Backup commands +* [fly mpg backup](/flyctl/cmd/fly_mpg_backup) - Manage Managed Postgres backups diff --git a/flyctl/cmd/fly_mpg_backup_list.mdx b/flyctl/cmd/fly_mpg_backup_list.mdx index 0e40d50d9c..a683469296 100644 --- a/flyctl/cmd/fly_mpg_backup_list.mdx +++ b/flyctl/cmd/fly_mpg_backup_list.mdx @@ -3,7 +3,15 @@ title: fly mpg backup list source_url: https://docs.fly.io/flyctl/cmd/fly_mpg_backup_list --- -List backups for a Managed Postgres cluster. +List backups of a Managed Postgres cluster with each backup's ID, start +time, status and type. By default only backups started in the last 24 +hours are shown; pass --all to see every backup. + +With no cluster ID, you pick an organization (unless FLY_ORG is set) and a +cluster from lists in a terminal; without a terminal, the cluster ID is +required. + +Restore a backup into a new cluster with `fly mpg restore --backup-id`. ## Usage ``` @@ -25,4 +33,4 @@ fly mpg backup list [flags] ``` ## See Also -* [fly mpg backup](/flyctl/cmd/fly_mpg_backup) - Backup commands +* [fly mpg backup](/flyctl/cmd/fly_mpg_backup) - Manage Managed Postgres backups diff --git a/flyctl/cmd/fly_mpg_connect.mdx b/flyctl/cmd/fly_mpg_connect.mdx index 105b6fb76a..3614e56bfa 100644 --- a/flyctl/cmd/fly_mpg_connect.mdx +++ b/flyctl/cmd/fly_mpg_connect.mdx @@ -3,10 +3,24 @@ title: fly mpg connect source_url: https://docs.fly.io/flyctl/cmd/fly_mpg_connect --- -Connect to a MPG database using psql. +Open a psql session to a Managed Postgres database. This starts a proxy +to the cluster over your organization's WireGuard network on local port +16380 and runs psql against it, so psql must be installed and on your PATH. + +With no cluster ID, you pick an organization (unless FLY_ORG is set) and a +cluster from lists in a terminal; without a terminal, the cluster ID is +required. In a terminal, you also pick the user and database unless you pass +--username and --database; otherwise the cluster's default credentials and +database are used. + +Press Ctrl+C to cancel a running query, and Ctrl+C twice within two +seconds to end the session. To connect with another client, use +`fly mpg proxy`. With --command or --file, psql stops at the first SQL error and skips its -startup file. See the examples for scripted usage. +startup file. The cluster ID is then required, and you're not asked for a +user or database: the cluster's defaults are used unless you pass +--username and --database. See the examples for scripted usage. ## Usage ``` @@ -40,4 +54,4 @@ fly mpg connect [flags] ``` ## See Also -* [fly mpg](/flyctl/cmd/fly_mpg) - Manage Managed Postgres clusters. +* [fly mpg](/flyctl/cmd/fly_mpg) - Manage Managed Postgres clusters diff --git a/flyctl/cmd/fly_mpg_create.mdx b/flyctl/cmd/fly_mpg_create.mdx index 744f0f56fb..5d0572bdf9 100644 --- a/flyctl/cmd/fly_mpg_create.mdx +++ b/flyctl/cmd/fly_mpg_create.mdx @@ -3,8 +3,19 @@ title: fly mpg create source_url: https://docs.fly.io/flyctl/cmd/fly_mpg_create --- -Create a new Managed Postgres cluster +Create a Managed Postgres cluster and wait until it's ready, then print +its connection string, including the password. The plan sets the +cluster's CPU, memory and monthly price. +The name, organization, region and plan come from --name, --org (or +FLY_ORG), --region and --plan, or you're asked for them in a terminal. If +your only organization is your personal one, it's used without asking. +Without a terminal, --name and --region are required, so is --org unless +FLY_ORG is set or you only have a personal organization, and the plan +defaults to Basic. + +You can stop waiting with Ctrl+C; the cluster keeps provisioning. Then use +`fly mpg status` to check on it and `fly mpg attach` to connect an app. ## Usage ``` @@ -31,4 +42,4 @@ fly mpg create [flags] ``` ## See Also -* [fly mpg](/flyctl/cmd/fly_mpg) - Manage Managed Postgres clusters. +* [fly mpg](/flyctl/cmd/fly_mpg) - Manage Managed Postgres clusters diff --git a/flyctl/cmd/fly_mpg_databases.mdx b/flyctl/cmd/fly_mpg_databases.mdx index f48f02de28..60d5d1700a 100644 --- a/flyctl/cmd/fly_mpg_databases.mdx +++ b/flyctl/cmd/fly_mpg_databases.mdx @@ -3,17 +3,17 @@ title: fly mpg databases source_url: https://docs.fly.io/flyctl/cmd/fly_mpg_databases --- -Manage databases in a managed postgres cluster - +List and create databases in a Managed Postgres cluster, and manage +their Postgres extensions with `fly mpg databases extensions`. ## Usage ``` fly mpg databases [command] [flags] ``` ## Available Commands -* [create](/flyctl/cmd/fly_mpg_databases_create) - Create a database in an MPG cluster. -* [extensions](/flyctl/cmd/fly_mpg_databases_extensions) - Manage Postgres extensions in a managed postgres cluster database -* [list](/flyctl/cmd/fly_mpg_databases_list) - List databases in an MPG cluster. +* [create](/flyctl/cmd/fly_mpg_databases_create) - Create a database in a Managed Postgres cluster +* [extensions](/flyctl/cmd/fly_mpg_databases_extensions) - Manage Postgres extensions in a Managed Postgres database +* [list](/flyctl/cmd/fly_mpg_databases_list) - List databases in a Managed Postgres cluster ## Options @@ -29,4 +29,4 @@ fly mpg databases [command] [flags] ``` ## See Also -* [fly mpg](/flyctl/cmd/fly_mpg) - Manage Managed Postgres clusters. +* [fly mpg](/flyctl/cmd/fly_mpg) - Manage Managed Postgres clusters diff --git a/flyctl/cmd/fly_mpg_databases_create.mdx b/flyctl/cmd/fly_mpg_databases_create.mdx index 756df16899..a344507032 100644 --- a/flyctl/cmd/fly_mpg_databases_create.mdx +++ b/flyctl/cmd/fly_mpg_databases_create.mdx @@ -3,7 +3,16 @@ title: fly mpg databases create source_url: https://docs.fly.io/flyctl/cmd/fly_mpg_databases_create --- -Create a new database in a Managed Postgres cluster. +Create a database in a Managed Postgres cluster. Pass the name with +--name, or enter it when asked in a terminal; without a terminal, --name +is required. + +With no cluster ID, you pick an organization (unless FLY_ORG is set) and a +cluster from lists in a terminal; without a terminal, the cluster ID is +required. + +To give an app a connection string for the new database, use +`fly mpg attach --database`. ## Usage ``` @@ -24,4 +33,4 @@ fly mpg databases create [flags] ``` ## See Also -* [fly mpg databases](/flyctl/cmd/fly_mpg_databases) - Manage databases in a managed postgres cluster +* [fly mpg databases](/flyctl/cmd/fly_mpg_databases) - Manage databases in a Managed Postgres cluster diff --git a/flyctl/cmd/fly_mpg_databases_extensions.mdx b/flyctl/cmd/fly_mpg_databases_extensions.mdx index 946b66c37a..85e2647da2 100644 --- a/flyctl/cmd/fly_mpg_databases_extensions.mdx +++ b/flyctl/cmd/fly_mpg_databases_extensions.mdx @@ -3,17 +3,18 @@ title: fly mpg databases extensions source_url: https://docs.fly.io/flyctl/cmd/fly_mpg_databases_extensions --- -Manage Postgres extensions in a managed postgres cluster database - +List, enable and disable Postgres extensions in a database of a Managed +Postgres cluster. Start with `fly mpg databases extensions list` to see which +extensions are available and installed. ## Usage ``` fly mpg databases extensions [command] [flags] ``` ## Available Commands -* [disable](/flyctl/cmd/fly_mpg_databases_extensions_disable) - Disable a Postgres extension on a database. -* [enable](/flyctl/cmd/fly_mpg_databases_extensions_enable) - Enable a Postgres extension on a database. -* [list](/flyctl/cmd/fly_mpg_databases_extensions_list) - List Postgres extensions for a database in an MPG cluster. +* [disable](/flyctl/cmd/fly_mpg_databases_extensions_disable) - Disable a Postgres extension in a Managed Postgres database +* [enable](/flyctl/cmd/fly_mpg_databases_extensions_enable) - Enable a Postgres extension in a Managed Postgres database +* [list](/flyctl/cmd/fly_mpg_databases_extensions_list) - List Postgres extensions in a Managed Postgres database ## Options @@ -29,4 +30,4 @@ fly mpg databases extensions [command] [flags] ``` ## See Also -* [fly mpg databases](/flyctl/cmd/fly_mpg_databases) - Manage databases in a managed postgres cluster +* [fly mpg databases](/flyctl/cmd/fly_mpg_databases) - Manage databases in a Managed Postgres cluster diff --git a/flyctl/cmd/fly_mpg_databases_extensions_disable.mdx b/flyctl/cmd/fly_mpg_databases_extensions_disable.mdx index a589e3dc69..35ec3c6bbb 100644 --- a/flyctl/cmd/fly_mpg_databases_extensions_disable.mdx +++ b/flyctl/cmd/fly_mpg_databases_extensions_disable.mdx @@ -3,7 +3,15 @@ title: fly mpg databases extensions disable source_url: https://docs.fly.io/flyctl/cmd/fly_mpg_databases_extensions_disable --- -Disable a Postgres extension on a database in a Managed Postgres cluster. +Disable (drop) a Postgres extension in a Managed Postgres database. With +--force, objects that depend on the extension are dropped too (CASCADE). +There's no confirmation prompt. + +With no --cluster, you pick an organization (unless FLY_ORG is set) and a +cluster from lists in a terminal; without a terminal, --cluster is required. +With no --database, the cluster's only database is used; if there are +several, you pick one in a terminal, and without a terminal --database is +required. ## Usage ``` @@ -26,4 +34,4 @@ fly mpg databases extensions disable [flags] ``` ## See Also -* [fly mpg databases extensions](/flyctl/cmd/fly_mpg_databases_extensions) - Manage Postgres extensions in a managed postgres cluster database +* [fly mpg databases extensions](/flyctl/cmd/fly_mpg_databases_extensions) - Manage Postgres extensions in a Managed Postgres database diff --git a/flyctl/cmd/fly_mpg_databases_extensions_enable.mdx b/flyctl/cmd/fly_mpg_databases_extensions_enable.mdx index 0b5c650b23..c14a267368 100644 --- a/flyctl/cmd/fly_mpg_databases_extensions_enable.mdx +++ b/flyctl/cmd/fly_mpg_databases_extensions_enable.mdx @@ -3,7 +3,18 @@ title: fly mpg databases extensions enable source_url: https://docs.fly.io/flyctl/cmd/fly_mpg_databases_extensions_enable --- -Enable a Postgres extension on a database in a Managed Postgres cluster. +Enable (install) a Postgres extension in a Managed Postgres database. The +extension goes in the schema given by --schema; add --create-schema if +that schema doesn't exist yet. For postgis_topology with no --schema, the +topology schema is used and created if needed. + +With no --cluster, you pick an organization (unless FLY_ORG is set) and a +cluster from lists in a terminal; without a terminal, --cluster is required. +With no --database, the cluster's only database is used; if there are +several, you pick one in a terminal, and without a terminal --database is +required. + +See available extensions with `fly mpg databases extensions list`. ## Usage ``` @@ -27,4 +38,4 @@ fly mpg databases extensions enable [flags] ``` ## See Also -* [fly mpg databases extensions](/flyctl/cmd/fly_mpg_databases_extensions) - Manage Postgres extensions in a managed postgres cluster database +* [fly mpg databases extensions](/flyctl/cmd/fly_mpg_databases_extensions) - Manage Postgres extensions in a Managed Postgres database diff --git a/flyctl/cmd/fly_mpg_databases_extensions_list.mdx b/flyctl/cmd/fly_mpg_databases_extensions_list.mdx index aecfe1ea4d..240329e075 100644 --- a/flyctl/cmd/fly_mpg_databases_extensions_list.mdx +++ b/flyctl/cmd/fly_mpg_databases_extensions_list.mdx @@ -3,7 +3,14 @@ title: fly mpg databases extensions list source_url: https://docs.fly.io/flyctl/cmd/fly_mpg_databases_extensions_list --- -List Postgres extensions in a database, showing which are currently installed. +List the Postgres extensions available in a Managed Postgres database, +showing which are installed and, for those, their version and schema. + +With no cluster ID, you pick an organization (unless FLY_ORG is set) and a +cluster from lists in a terminal; without a terminal, the cluster ID is +required. With no --database, the cluster's only database is used; if there +are several, you pick one in a terminal, and without a terminal --database +is required. ## Usage ``` @@ -25,4 +32,4 @@ fly mpg databases extensions list [flags] ``` ## See Also -* [fly mpg databases extensions](/flyctl/cmd/fly_mpg_databases_extensions) - Manage Postgres extensions in a managed postgres cluster database +* [fly mpg databases extensions](/flyctl/cmd/fly_mpg_databases_extensions) - Manage Postgres extensions in a Managed Postgres database diff --git a/flyctl/cmd/fly_mpg_databases_list.mdx b/flyctl/cmd/fly_mpg_databases_list.mdx index d4c1daaec1..2bfaaca3df 100644 --- a/flyctl/cmd/fly_mpg_databases_list.mdx +++ b/flyctl/cmd/fly_mpg_databases_list.mdx @@ -3,7 +3,11 @@ title: fly mpg databases list source_url: https://docs.fly.io/flyctl/cmd/fly_mpg_databases_list --- -List databases in a Managed Postgres cluster. +List the databases in a Managed Postgres cluster by name. + +With no cluster ID, you pick an organization (unless FLY_ORG is set) and a +cluster from lists in a terminal; without a terminal, the cluster ID is +required. ## Usage ``` @@ -24,4 +28,4 @@ fly mpg databases list [flags] ``` ## See Also -* [fly mpg databases](/flyctl/cmd/fly_mpg_databases) - Manage databases in a managed postgres cluster +* [fly mpg databases](/flyctl/cmd/fly_mpg_databases) - Manage databases in a Managed Postgres cluster diff --git a/flyctl/cmd/fly_mpg_destroy.mdx b/flyctl/cmd/fly_mpg_destroy.mdx index 4ba2389139..fd6e56a0d0 100644 --- a/flyctl/cmd/fly_mpg_destroy.mdx +++ b/flyctl/cmd/fly_mpg_destroy.mdx @@ -3,8 +3,12 @@ title: fly mpg destroy source_url: https://docs.fly.io/flyctl/cmd/fly_mpg_destroy --- -Destroy a managed Postgres cluster. This command will permanently destroy a managed Postgres cluster and all its data. -This action is not reversible. +Permanently destroy a Managed Postgres cluster and all of its data. This +can't be undone. + +You're asked to confirm unless you pass --yes; without a terminal, --yes is +required. The cluster is scheduled for deletion and may take some time to +disappear. Find cluster IDs with `fly mpg list`. ## Usage ``` @@ -25,4 +29,4 @@ fly mpg destroy [flags] ``` ## See Also -* [fly mpg](/flyctl/cmd/fly_mpg) - Manage Managed Postgres clusters. +* [fly mpg](/flyctl/cmd/fly_mpg) - Manage Managed Postgres clusters diff --git a/flyctl/cmd/fly_mpg_detach.mdx b/flyctl/cmd/fly_mpg_detach.mdx index d2c94ae4fd..7884f05f4c 100644 --- a/flyctl/cmd/fly_mpg_detach.mdx +++ b/flyctl/cmd/fly_mpg_detach.mdx @@ -3,8 +3,15 @@ title: fly mpg detach source_url: https://docs.fly.io/flyctl/cmd/fly_mpg_detach --- -Detach a managed Postgres cluster from an app. This command will remove the attachment record linking the app to the cluster. -Note: This does NOT remove any secrets from the app. Use 'fly secrets unset' to remove secrets. +Detach a Managed Postgres cluster from an app by removing the attachment +record that links them. The cluster, its data and its users are not +changed. + +This does not remove the connection string secret from the app. Remove it +with `fly secrets unset DATABASE_URL` (or the variable name you used). + +With no cluster ID, you pick one from the app's organization in a +terminal; without a terminal, the cluster ID is required. ## Usage ``` @@ -26,4 +33,4 @@ fly mpg detach [flags] ``` ## See Also -* [fly mpg](/flyctl/cmd/fly_mpg) - Manage Managed Postgres clusters. +* [fly mpg](/flyctl/cmd/fly_mpg) - Manage Managed Postgres clusters diff --git a/flyctl/cmd/fly_mpg_fork.mdx b/flyctl/cmd/fly_mpg_fork.mdx index 08080b61a3..d698834ae9 100644 --- a/flyctl/cmd/fly_mpg_fork.mdx +++ b/flyctl/cmd/fly_mpg_fork.mdx @@ -8,7 +8,12 @@ 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. +including a smaller one. The command returns once the fork starts and +prints the new cluster's ID; check on it with `fly mpg status`. + +With no cluster ID, you pick an organization (unless FLY_ORG is set) and a +cluster from lists in a terminal; without a terminal, the cluster ID is +required. Not available for v1 clusters. ## Usage ``` @@ -30,4 +35,4 @@ fly mpg fork [CLUSTER_ID] [flags] ``` ## See Also -* [fly mpg](/flyctl/cmd/fly_mpg) - Manage Managed Postgres clusters. +* [fly mpg](/flyctl/cmd/fly_mpg) - Manage Managed Postgres clusters diff --git a/flyctl/cmd/fly_mpg_list.mdx b/flyctl/cmd/fly_mpg_list.mdx index 16694749c5..5994b6de4f 100644 --- a/flyctl/cmd/fly_mpg_list.mdx +++ b/flyctl/cmd/fly_mpg_list.mdx @@ -3,8 +3,12 @@ title: fly mpg list source_url: https://docs.fly.io/flyctl/cmd/fly_mpg_list --- -List MPG clusters owned by the specified organization. -If no organization is specified, the user's personal organization is used. +List the Managed Postgres clusters in an organization, with each +cluster's ID, region, status, plan and attached apps. + +Pass the organization with --org or FLY_ORG. With neither, you pick one +from a list in a terminal; without a terminal, one of them is required. +Use --deleted to list deleted clusters instead of active ones. ## Usage ``` @@ -27,4 +31,4 @@ fly mpg list [flags] ``` ## See Also -* [fly mpg](/flyctl/cmd/fly_mpg) - Manage Managed Postgres clusters. +* [fly mpg](/flyctl/cmd/fly_mpg) - Manage Managed Postgres clusters diff --git a/flyctl/cmd/fly_mpg_maintenance-window.mdx b/flyctl/cmd/fly_mpg_maintenance-window.mdx index 5457d64f8d..71921866f1 100644 --- a/flyctl/cmd/fly_mpg_maintenance-window.mdx +++ b/flyctl/cmd/fly_mpg_maintenance-window.mdx @@ -4,15 +4,16 @@ source_url: https://docs.fly.io/flyctl/cmd/fly_mpg_maintenance-window --- Show or change the weekly window during which a Managed Postgres cluster -may undergo maintenance. Times are in the cluster's regional timezone. +may undergo maintenance. Times are in the cluster's regional timezone. Not +available for v1 clusters. ## Usage ``` fly mpg maintenance-window [command] [flags] ``` ## Available Commands -* [set](/flyctl/cmd/fly_mpg_maintenance-window_set) - Change an MPG cluster's maintenance window. -* [show](/flyctl/cmd/fly_mpg_maintenance-window_show) - Show an MPG cluster's maintenance window. +* [set](/flyctl/cmd/fly_mpg_maintenance-window_set) - Change a Managed Postgres cluster's maintenance window +* [show](/flyctl/cmd/fly_mpg_maintenance-window_show) - Show a Managed Postgres cluster's maintenance window ## Options @@ -28,4 +29,4 @@ fly mpg maintenance-window [command] [flags] ``` ## See Also -* [fly mpg](/flyctl/cmd/fly_mpg) - Manage Managed Postgres clusters. +* [fly mpg](/flyctl/cmd/fly_mpg) - Manage Managed Postgres clusters diff --git a/flyctl/cmd/fly_mpg_maintenance-window_set.mdx b/flyctl/cmd/fly_mpg_maintenance-window_set.mdx index a3a995de79..40fa55c90e 100644 --- a/flyctl/cmd/fly_mpg_maintenance-window_set.mdx +++ b/flyctl/cmd/fly_mpg_maintenance-window_set.mdx @@ -4,9 +4,13 @@ source_url: https://docs.fly.io/flyctl/cmd/fly_mpg_maintenance-window_set --- Change the weekly maintenance window of a Managed Postgres cluster. -Only the flags you pass are changed; the rest of the window keeps its current -value. The start hour is in the cluster's regional timezone, shown by -'fly mpg maintenance-window show'. +Pass at least one of --day, --start-hour and --duration; the rest of the +window keeps its current value. The start hour is in the cluster's regional +timezone, shown by `fly mpg maintenance-window show`. + +With no cluster ID, you pick an organization (unless FLY_ORG is set) and a +cluster from lists in a terminal; without a terminal, the cluster ID is +required. Not available for v1 clusters. ## Usage ``` diff --git a/flyctl/cmd/fly_mpg_maintenance-window_show.mdx b/flyctl/cmd/fly_mpg_maintenance-window_show.mdx index f432394b2e..16b4989a53 100644 --- a/flyctl/cmd/fly_mpg_maintenance-window_show.mdx +++ b/flyctl/cmd/fly_mpg_maintenance-window_show.mdx @@ -3,9 +3,15 @@ title: fly mpg maintenance-window show source_url: https://docs.fly.io/flyctl/cmd/fly_mpg_maintenance-window_show --- -Show the weekly maintenance window of a Managed Postgres cluster. -Some clusters have no window: their maintenance can run at any time. For them -it prints that, or null with --json. +Show the weekly maintenance window of a Managed Postgres cluster: the day +it starts, the start hour in the cluster's regional timezone, and how many +hours it lasts. Some clusters have no window: their maintenance can run at +any time. For them it prints that, or null with --json. + +With no cluster ID, you pick an organization (unless FLY_ORG is set) and a +cluster from lists in a terminal; without a terminal, the cluster ID is +required. To change the window, run `fly mpg maintenance-window set`. Not +available for v1 clusters. ## Usage ``` diff --git a/flyctl/cmd/fly_mpg_proxy.mdx b/flyctl/cmd/fly_mpg_proxy.mdx index 116633d802..04e9ab2c69 100644 --- a/flyctl/cmd/fly_mpg_proxy.mdx +++ b/flyctl/cmd/fly_mpg_proxy.mdx @@ -3,7 +3,14 @@ title: fly mpg proxy source_url: https://docs.fly.io/flyctl/cmd/fly_mpg_proxy --- -Proxy to a MPG database +Forward a local port to a Managed Postgres cluster over your +organization's WireGuard network, so any Postgres client on your machine +can connect to it. By default it listens on 127.0.0.1:16380; change this +with --bind-addr and --local-port. The proxy runs until you stop it. + +With no cluster ID, you pick an organization (unless FLY_ORG is set) and a +cluster from lists in a terminal; without a terminal, the cluster ID is +required. To open psql directly, use `fly mpg connect`. ## Usage ``` @@ -25,4 +32,4 @@ fly mpg proxy [flags] ``` ## See Also -* [fly mpg](/flyctl/cmd/fly_mpg) - Manage Managed Postgres clusters. +* [fly mpg](/flyctl/cmd/fly_mpg) - Manage Managed Postgres clusters diff --git a/flyctl/cmd/fly_mpg_restore.mdx b/flyctl/cmd/fly_mpg_restore.mdx index 9e4705c3b6..199a456d2c 100644 --- a/flyctl/cmd/fly_mpg_restore.mdx +++ b/flyctl/cmd/fly_mpg_restore.mdx @@ -7,7 +7,14 @@ Restore a Managed Postgres cluster from a backup or a point in time into a new cluster, leaving the source cluster unchanged. The restored cluster is provisioned asynchronously in the same organization and billed separately. -Find backup IDs with 'fly mpg backup list'. +Pass exactly one of --backup-id or --pitr-time. Point-in-time restore is +not available for v1 clusters. Find backup IDs with +`fly mpg backup list`, adding --all for backups older than 24 hours. The command returns once the restore starts +and prints the new cluster's ID; check on it with `fly mpg status`. + +With no cluster ID, you pick an organization (unless FLY_ORG is set) and a +cluster from lists in a terminal; without a terminal, the cluster ID is +required. ## Usage ``` @@ -30,4 +37,4 @@ fly mpg restore [flags] ``` ## See Also -* [fly mpg](/flyctl/cmd/fly_mpg) - Manage Managed Postgres clusters. +* [fly mpg](/flyctl/cmd/fly_mpg) - Manage Managed Postgres clusters diff --git a/flyctl/cmd/fly_mpg_status.mdx b/flyctl/cmd/fly_mpg_status.mdx index 7fa449245b..7c211a7aac 100644 --- a/flyctl/cmd/fly_mpg_status.mdx +++ b/flyctl/cmd/fly_mpg_status.mdx @@ -3,7 +3,14 @@ title: fly mpg status source_url: https://docs.fly.io/flyctl/cmd/fly_mpg_status --- -Show status and details of a specific Managed Postgres cluster using its ID. +Show the status of a Managed Postgres cluster: its ID, name, +organization, region, status, storage used and allocated (only allocated +for v1 clusters), replica count and direct IP address. With --json, the +output includes the cluster's credentials, including the password. + +With no cluster ID, you pick an organization (unless FLY_ORG is set) and a +cluster from lists in a terminal; without a terminal, the cluster ID is +required. ## Usage ``` @@ -24,4 +31,4 @@ fly mpg status [CLUSTER_ID] [flags] ``` ## See Also -* [fly mpg](/flyctl/cmd/fly_mpg) - Manage Managed Postgres clusters. +* [fly mpg](/flyctl/cmd/fly_mpg) - Manage Managed Postgres clusters diff --git a/flyctl/cmd/fly_mpg_users.mdx b/flyctl/cmd/fly_mpg_users.mdx index c83a559ca9..23897f65da 100644 --- a/flyctl/cmd/fly_mpg_users.mdx +++ b/flyctl/cmd/fly_mpg_users.mdx @@ -3,19 +3,20 @@ title: fly mpg users source_url: https://docs.fly.io/flyctl/cmd/fly_mpg_users --- -Manage users in a managed postgres cluster - +List, create and delete database users in a Managed Postgres cluster, +change their roles, and rotate their passwords. Each user has one role: +schema_admin, writer or reader. ## Usage ``` fly mpg users [command] [flags] ``` ## Available Commands -* [create](/flyctl/cmd/fly_mpg_users_create) - Create a user in an MPG cluster. -* [delete](/flyctl/cmd/fly_mpg_users_delete) - Delete a user from an MPG cluster. -* [list](/flyctl/cmd/fly_mpg_users_list) - List users in an MPG cluster. -* [rotate-password](/flyctl/cmd/fly_mpg_users_rotate-password) - Rotate a user's password in an MPG cluster. -* [set-role](/flyctl/cmd/fly_mpg_users_set-role) - Update a user's role in an MPG cluster. +* [create](/flyctl/cmd/fly_mpg_users_create) - Create a user in a Managed Postgres cluster +* [delete](/flyctl/cmd/fly_mpg_users_delete) - Delete a user from a Managed Postgres cluster +* [list](/flyctl/cmd/fly_mpg_users_list) - List users in a Managed Postgres cluster +* [rotate-password](/flyctl/cmd/fly_mpg_users_rotate-password) - Rotate a user's password in a Managed Postgres cluster +* [set-role](/flyctl/cmd/fly_mpg_users_set-role) - Change a user's role in a Managed Postgres cluster ## Options @@ -31,4 +32,4 @@ fly mpg users [command] [flags] ``` ## See Also -* [fly mpg](/flyctl/cmd/fly_mpg) - Manage Managed Postgres clusters. +* [fly mpg](/flyctl/cmd/fly_mpg) - Manage Managed Postgres clusters diff --git a/flyctl/cmd/fly_mpg_users_create.mdx b/flyctl/cmd/fly_mpg_users_create.mdx index 1a4028bdd2..5f6a89f9c9 100644 --- a/flyctl/cmd/fly_mpg_users_create.mdx +++ b/flyctl/cmd/fly_mpg_users_create.mdx @@ -3,7 +3,16 @@ title: fly mpg users create source_url: https://docs.fly.io/flyctl/cmd/fly_mpg_users_create --- -Create a new user in a Managed Postgres cluster. +Create a database user in a Managed Postgres cluster with a role of +schema_admin, writer or reader. Pass --username and --role, or enter them +when asked in a terminal; without a terminal, both are required. + +With no cluster ID, you pick an organization (unless FLY_ORG is set) and a +cluster from lists in a terminal; without a terminal, the cluster ID is +required. + +To give an app a connection string for the new user, use +`fly mpg attach --username`. ## Usage ``` @@ -25,4 +34,4 @@ fly mpg users create [flags] ``` ## See Also -* [fly mpg users](/flyctl/cmd/fly_mpg_users) - Manage users in a managed postgres cluster +* [fly mpg users](/flyctl/cmd/fly_mpg_users) - Manage users in a Managed Postgres cluster diff --git a/flyctl/cmd/fly_mpg_users_delete.mdx b/flyctl/cmd/fly_mpg_users_delete.mdx index 89b2ed036c..675151f5b7 100644 --- a/flyctl/cmd/fly_mpg_users_delete.mdx +++ b/flyctl/cmd/fly_mpg_users_delete.mdx @@ -3,7 +3,14 @@ title: fly mpg users delete source_url: https://docs.fly.io/flyctl/cmd/fly_mpg_users_delete --- -Delete a user from a Managed Postgres cluster. +Delete a database user from a Managed Postgres cluster. This can't be +undone. Pass --username, or pick the user from a list in a terminal. +You're asked to confirm unless you pass --yes; without a terminal, +--username and --yes are required. + +With no cluster ID, you pick an organization (unless FLY_ORG is set) and a +cluster from lists in a terminal; without a terminal, the cluster ID is +required. ## Usage ``` @@ -25,4 +32,4 @@ fly mpg users delete [flags] ``` ## See Also -* [fly mpg users](/flyctl/cmd/fly_mpg_users) - Manage users in a managed postgres cluster +* [fly mpg users](/flyctl/cmd/fly_mpg_users) - Manage users in a Managed Postgres cluster diff --git a/flyctl/cmd/fly_mpg_users_list.mdx b/flyctl/cmd/fly_mpg_users_list.mdx index a44226d112..18b55fe277 100644 --- a/flyctl/cmd/fly_mpg_users_list.mdx +++ b/flyctl/cmd/fly_mpg_users_list.mdx @@ -3,7 +3,12 @@ title: fly mpg users list source_url: https://docs.fly.io/flyctl/cmd/fly_mpg_users_list --- -List users in a Managed Postgres cluster. +List the database users in a Managed Postgres cluster with each user's +role. + +With no cluster ID, you pick an organization (unless FLY_ORG is set) and a +cluster from lists in a terminal; without a terminal, the cluster ID is +required. ## Usage ``` @@ -24,4 +29,4 @@ fly mpg users list [flags] ``` ## See Also -* [fly mpg users](/flyctl/cmd/fly_mpg_users) - Manage users in a managed postgres cluster +* [fly mpg users](/flyctl/cmd/fly_mpg_users) - Manage users in a Managed Postgres cluster diff --git a/flyctl/cmd/fly_mpg_users_rotate-password.mdx b/flyctl/cmd/fly_mpg_users_rotate-password.mdx index 8b90088067..26d0f7f1d4 100644 --- a/flyctl/cmd/fly_mpg_users_rotate-password.mdx +++ b/flyctl/cmd/fly_mpg_users_rotate-password.mdx @@ -3,8 +3,17 @@ title: fly mpg users rotate-password source_url: https://docs.fly.io/flyctl/cmd/fly_mpg_users_rotate-password --- -Rotate a user's password in a Managed Postgres cluster. Prints the new password. -Update applications and DATABASE_URL secrets that use the old password. +Give a Managed Postgres user a new password and print it. This can't be +undone: apps using the old password can't open new connections, so update +their DATABASE_URL secrets afterwards. Existing sessions stay open unless +you pass --kill-sessions. + +Pass --username, or pick the user from a list in a terminal. You're asked +to confirm unless you pass --yes. Without a terminal, or with --json, the +cluster ID, --username and --yes are all required. + +With no cluster ID, you pick an organization (unless FLY_ORG is set) and a +cluster from lists in a terminal. Not available for v1 clusters. ## Usage ``` @@ -28,4 +37,4 @@ fly mpg users rotate-password [flags] ``` ## See Also -* [fly mpg users](/flyctl/cmd/fly_mpg_users) - Manage users in a managed postgres cluster +* [fly mpg users](/flyctl/cmd/fly_mpg_users) - Manage users in a Managed Postgres cluster diff --git a/flyctl/cmd/fly_mpg_users_set-role.mdx b/flyctl/cmd/fly_mpg_users_set-role.mdx index 863c15f125..43d4ada00c 100644 --- a/flyctl/cmd/fly_mpg_users_set-role.mdx +++ b/flyctl/cmd/fly_mpg_users_set-role.mdx @@ -3,7 +3,13 @@ title: fly mpg users set-role source_url: https://docs.fly.io/flyctl/cmd/fly_mpg_users_set-role --- -Update a user's role in a Managed Postgres cluster. +Change a database user's role in a Managed Postgres cluster to +schema_admin, writer or reader. Pass --username and --role, or pick them +from lists in a terminal; without a terminal, both are required. + +With no cluster ID, you pick an organization (unless FLY_ORG is set) and a +cluster from lists in a terminal; without a terminal, the cluster ID is +required. ## Usage ``` @@ -25,4 +31,4 @@ fly mpg users set-role [flags] ``` ## See Also -* [fly mpg users](/flyctl/cmd/fly_mpg_users) - Manage users in a managed postgres cluster +* [fly mpg users](/flyctl/cmd/fly_mpg_users) - Manage users in a Managed Postgres cluster diff --git a/flyctl/cmd/fly_storage.mdx b/flyctl/cmd/fly_storage.mdx index 87286e0331..93b1ed7143 100644 --- a/flyctl/cmd/fly_storage.mdx +++ b/flyctl/cmd/fly_storage.mdx @@ -4,8 +4,12 @@ sidebarTitle: "Manage Tigris storage (storage)" source_url: https://docs.fly.io/flyctl/cmd/fly_storage --- -Provision and manage Tigris object storage buckets +Provision and manage Tigris object storage buckets. A bucket can be +attached to an app, which then gets the bucket's credentials as secrets, +or belong only to an organization. +Create a bucket with `fly storage create`, and see its settings with +`fly storage status`. ## Usage ``` diff --git a/flyctl/cmd/fly_storage_create.mdx b/flyctl/cmd/fly_storage_create.mdx index 1ce14303f8..7a8661c6e5 100644 --- a/flyctl/cmd/fly_storage_create.mdx +++ b/flyctl/cmd/fly_storage_create.mdx @@ -3,8 +3,27 @@ title: fly storage create source_url: https://docs.fly.io/flyctl/cmd/fly_storage_create --- -Provision a Tigris object storage bucket +Provision a Tigris object storage bucket. In an app directory, or with +`--app`, the bucket is attached to that app, and the command fails if +the app already has one. Otherwise the bucket belongs to an +organization, which you pick from a list unless you pass `--org` or set +FLY_ORG. +Pass `--name` to choose the bucket name; otherwise you're asked for one, +and can leave it blank to have one generated. The first time you use +Tigris you must accept its terms of service. `--yes` accepts them and +skips the name prompt. Without a terminal, pass `--yes`, or just +`--name` if you've already accepted the terms; outside an app, `--org` +or FLY_ORG is required too. + +For an app's bucket, the credentials are set as secrets on the app and +its machines restart to pick them up; if the app hasn't been deployed +yet, they take effect on its first deploy. If any of those secrets +already exist, none are set. The credentials are always printed. + +To add a shadow bucket, pass all five of `--shadow-access-key`, +`--shadow-secret-key`, `--shadow-region`, `--shadow-name` and +`--shadow-endpoint`. ## Usage ``` diff --git a/flyctl/cmd/fly_storage_dashboard.mdx b/flyctl/cmd/fly_storage_dashboard.mdx index 9ff58aff23..9ad6ddf5d1 100644 --- a/flyctl/cmd/fly_storage_dashboard.mdx +++ b/flyctl/cmd/fly_storage_dashboard.mdx @@ -3,7 +3,14 @@ title: fly storage dashboard source_url: https://docs.fly.io/flyctl/cmd/fly_storage_dashboard --- -Visit the Tigris dashboard +Open the Tigris web console for a bucket in your browser, using a +sign-in link from Fly.io. Name the bucket as an argument, or run the +command in an app directory (or with `--app`) to use the app's bucket. +With `--org`, or with FLY_ORG set, it opens that organization's Tigris +dashboard instead, even if you name a bucket. + +If you haven't accepted Tigris's terms of service yet, you're asked to; +`--yes` accepts them, and is required to do so without a terminal. ## Usage ``` diff --git a/flyctl/cmd/fly_storage_destroy.mdx b/flyctl/cmd/fly_storage_destroy.mdx index aa6173a857..0cee90b9b4 100644 --- a/flyctl/cmd/fly_storage_destroy.mdx +++ b/flyctl/cmd/fly_storage_destroy.mdx @@ -3,7 +3,13 @@ title: fly storage destroy source_url: https://docs.fly.io/flyctl/cmd/fly_storage_destroy --- -Permanently destroy a Tigris object storage bucket +Permanently destroy a Tigris object storage bucket. This can't be +undone. Name the bucket as an argument, or run the command in an app +directory (or with `--app`) to use the app's bucket. + +You're asked to confirm first. Pass `--yes` to skip the prompt; without +a terminal, `--yes` is required. The bucket's secrets are not removed +from the app; unset them with `fly secrets unset`. ## Usage ``` diff --git a/flyctl/cmd/fly_storage_list.mdx b/flyctl/cmd/fly_storage_list.mdx index e73aadcf6f..f591002016 100644 --- a/flyctl/cmd/fly_storage_list.mdx +++ b/flyctl/cmd/fly_storage_list.mdx @@ -3,7 +3,9 @@ title: fly storage list source_url: https://docs.fly.io/flyctl/cmd/fly_storage_list --- -List your Tigris object storage buckets +List the Tigris object storage buckets you have access to, with the +organization each one belongs to. Pass `--org` or set FLY_ORG to list +only one organization's buckets. ## Usage ``` diff --git a/flyctl/cmd/fly_storage_status.mdx b/flyctl/cmd/fly_storage_status.mdx index fd97b90e08..e114d29e3f 100644 --- a/flyctl/cmd/fly_storage_status.mdx +++ b/flyctl/cmd/fly_storage_status.mdx @@ -3,8 +3,10 @@ title: fly storage status source_url: https://docs.fly.io/flyctl/cmd/fly_storage_status --- -Show details about a Tigris storage bucket - +Show a Tigris bucket's name, status, whether it's public, and its shadow +bucket settings. Name the bucket as an argument, or run the command in +an app directory (or with `--app`) to use the app's bucket. When the +bucket is found through an app, the app's name is shown too. ## Usage ``` diff --git a/flyctl/cmd/fly_storage_update.mdx b/flyctl/cmd/fly_storage_update.mdx index fd93885ebf..bbc43b4386 100644 --- a/flyctl/cmd/fly_storage_update.mdx +++ b/flyctl/cmd/fly_storage_update.mdx @@ -3,8 +3,22 @@ title: fly storage update source_url: https://docs.fly.io/flyctl/cmd/fly_storage_update --- -Update an existing Tigris object storage bucket +Change the settings of an existing Tigris bucket, given by name as the +argument. You can make it public or private, set or clear a shadow +bucket, and set or clear a custom domain. Settings you don't pass stay +as they are, except within a shadow bucket. When the update succeeds, +the bucket's status is printed. +Setting a shadow bucket replaces its whole configuration, so pass all +five of `--shadow-access-key`, `--shadow-secret-key`, `--shadow-region`, +`--shadow-name` and `--shadow-endpoint`. Write-through is turned off +unless you also pass `--shadow-write-through`, which does nothing on its +own. + +Before a custom domain is set, you're asked to confirm that you've +created a DNS CNAME record pointing the domain at the bucket's name +followed by `.t3.tigrisbucket.io`. `--yes` skips the confirmation, and +is required without a terminal. ## Usage ```