diff --git a/flyctl/cmd/fly_mpg_users.mdx b/flyctl/cmd/fly_mpg_users.mdx index 601ce8a18a..88dd2340a5 100644 --- a/flyctl/cmd/fly_mpg_users.mdx +++ b/flyctl/cmd/fly_mpg_users.mdx @@ -14,6 +14,7 @@ fly mpg users [command] [flags] * [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. ## Options diff --git a/flyctl/cmd/fly_mpg_users_rotate-password.mdx b/flyctl/cmd/fly_mpg_users_rotate-password.mdx new file mode 100644 index 0000000000..07da0c117e --- /dev/null +++ b/flyctl/cmd/fly_mpg_users_rotate-password.mdx @@ -0,0 +1,31 @@ +--- +title: fly mpg users rotate-password +source_url: https://fly.io/docs/flyctl/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. + +## Usage +``` +fly mpg users rotate-password [flags] +``` +## Options + +``` + -h, --help help for rotate-password + -j, --json JSON output + --kill-sessions Terminate the user's existing database sessions after rotating the password + -u, --username string The username whose password to rotate + -y, --yes Accept all confirmations (also --auto-confirm) +``` +## Global Options + +``` + -t, --access-token string Fly API Access Token + --debug Print additional logs and traces + --verbose Verbose output +``` +## See Also + +* [fly mpg users](/flyctl/cmd/fly_mpg_users) - Manage users in a managed postgres cluster