diff --git a/flyctl/cmd/fly_mpg.md b/flyctl/cmd/fly_mpg.md index dab5ef368d..b54cca6a9e 100644 --- a/flyctl/cmd/fly_mpg.md +++ b/flyctl/cmd/fly_mpg.md @@ -17,6 +17,7 @@ fly mpg [command] [flags] * [proxy](/docs/flyctl/mpg-proxy/) - Proxy to a MPG database * [restore](/docs/flyctl/mpg-restore/) - Restore MPG cluster from backup. * [status](/docs/flyctl/mpg-status/) - Show MPG cluster status. +* [users](/docs/flyctl/mpg-users/) - Manage users in a managed postgres cluster ## Options diff --git a/flyctl/cmd/fly_mpg_attach.md b/flyctl/cmd/fly_mpg_attach.md index 1448a1f61a..9b4e63c19c 100644 --- a/flyctl/cmd/fly_mpg_attach.md +++ b/flyctl/cmd/fly_mpg_attach.md @@ -11,7 +11,9 @@ fly mpg attach [flags] ~~~ -a, --app string Application name -c, --config string Path to application configuration file + -d, --database string The database to connect to -h, --help help for attach + -u, --username string The username to connect as --variable-name string The name of the environment variable that will be added to the attached app (default "DATABASE_URL") ~~~ diff --git a/flyctl/cmd/fly_mpg_connect.md b/flyctl/cmd/fly_mpg_connect.md index c3b6fca60a..82a7fb1c35 100644 --- a/flyctl/cmd/fly_mpg_connect.md +++ b/flyctl/cmd/fly_mpg_connect.md @@ -10,6 +10,7 @@ fly mpg connect [flags] ~~~ -d, --database string The database to connect to -h, --help help for connect + -u, --username string The username to connect as ~~~ ## Global Options diff --git a/flyctl/cmd/fly_mpg_users.md b/flyctl/cmd/fly_mpg_users.md new file mode 100644 index 0000000000..4f70b3c4ec --- /dev/null +++ b/flyctl/cmd/fly_mpg_users.md @@ -0,0 +1,32 @@ +Manage users in a managed postgres cluster + + +## Usage +~~~ +fly mpg users [command] [flags] +~~~ + +## Available Commands +* [create](/docs/flyctl/mpg-users-create/) - Create a user in an MPG cluster. +* [delete](/docs/flyctl/mpg-users-delete/) - Delete a user from an MPG cluster. +* [list](/docs/flyctl/mpg-users-list/) - List users in an MPG cluster. +* [set-role](/docs/flyctl/mpg-users-set-role/) - Update a user's role in an MPG cluster. + +## Options + +~~~ + -h, --help help for users +~~~ + +## Global Options + +~~~ + -t, --access-token string Fly API Access Token + --debug Print additional logs and traces + --verbose Verbose output +~~~ + +## See Also + +* [fly mpg](/docs/flyctl/mpg/) - Manage Managed Postgres clusters. + diff --git a/flyctl/cmd/fly_mpg_users_create.md b/flyctl/cmd/fly_mpg_users_create.md new file mode 100644 index 0000000000..0097e95e6e --- /dev/null +++ b/flyctl/cmd/fly_mpg_users_create.md @@ -0,0 +1,27 @@ +Create a new user in a Managed Postgres cluster. + +## Usage +~~~ +fly mpg users create [flags] +~~~ + +## Options + +~~~ + -h, --help help for create + -r, --role string The role of the user (schema_admin, writer, or reader) + -u, --username string The username of the user +~~~ + +## Global Options + +~~~ + -t, --access-token string Fly API Access Token + --debug Print additional logs and traces + --verbose Verbose output +~~~ + +## See Also + +* [fly mpg users](/docs/flyctl/mpg-users/) - Manage users in a managed postgres cluster + diff --git a/flyctl/cmd/fly_mpg_users_delete.md b/flyctl/cmd/fly_mpg_users_delete.md new file mode 100644 index 0000000000..b6198e1faf --- /dev/null +++ b/flyctl/cmd/fly_mpg_users_delete.md @@ -0,0 +1,27 @@ +Delete a user from a Managed Postgres cluster. + +## Usage +~~~ +fly mpg users delete [flags] +~~~ + +## Options + +~~~ + -h, --help help for delete + -u, --username string The username to delete + -y, --yes Accept all confirmations +~~~ + +## Global Options + +~~~ + -t, --access-token string Fly API Access Token + --debug Print additional logs and traces + --verbose Verbose output +~~~ + +## See Also + +* [fly mpg users](/docs/flyctl/mpg-users/) - Manage users in a managed postgres cluster + diff --git a/flyctl/cmd/fly_mpg_users_list.md b/flyctl/cmd/fly_mpg_users_list.md new file mode 100644 index 0000000000..ae56fd99b9 --- /dev/null +++ b/flyctl/cmd/fly_mpg_users_list.md @@ -0,0 +1,26 @@ +List users in a Managed Postgres cluster. + +## Usage +~~~ +fly mpg users list [flags] +~~~ + +## Options + +~~~ + -h, --help help for list + -j, --json JSON output +~~~ + +## Global Options + +~~~ + -t, --access-token string Fly API Access Token + --debug Print additional logs and traces + --verbose Verbose output +~~~ + +## See Also + +* [fly mpg users](/docs/flyctl/mpg-users/) - Manage users in a managed postgres cluster + diff --git a/flyctl/cmd/fly_mpg_users_set-role.md b/flyctl/cmd/fly_mpg_users_set-role.md new file mode 100644 index 0000000000..3319fd978a --- /dev/null +++ b/flyctl/cmd/fly_mpg_users_set-role.md @@ -0,0 +1,27 @@ +Update a user's role in a Managed Postgres cluster. + +## Usage +~~~ +fly mpg users set-role [flags] +~~~ + +## Options + +~~~ + -h, --help help for set-role + -r, --role string The new role for the user (schema_admin, writer, or reader) + -u, --username string The username to update +~~~ + +## Global Options + +~~~ + -t, --access-token string Fly API Access Token + --debug Print additional logs and traces + --verbose Verbose output +~~~ + +## See Also + +* [fly mpg users](/docs/flyctl/mpg-users/) - Manage users in a managed postgres cluster +