Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions flyctl/cmd/fly_mpg_users.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
31 changes: 31 additions & 0 deletions flyctl/cmd/fly_mpg_users_rotate-password.mdx
Original file line number Diff line number Diff line change
@@ -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 <CLUSTER_ID> [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
Loading