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.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions flyctl/cmd/fly_mpg_attach.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ fly mpg attach <CLUSTER ID> [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")
~~~

Expand Down
1 change: 1 addition & 0 deletions flyctl/cmd/fly_mpg_connect.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ fly mpg connect <CLUSTER ID> [flags]
~~~
-d, --database string The database to connect to
-h, --help help for connect
-u, --username string The username to connect as
~~~

## Global Options
Expand Down
32 changes: 32 additions & 0 deletions flyctl/cmd/fly_mpg_users.md
Original file line number Diff line number Diff line change
@@ -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.

27 changes: 27 additions & 0 deletions flyctl/cmd/fly_mpg_users_create.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Create a new user in a Managed Postgres cluster.

## Usage
~~~
fly mpg users create <CLUSTER_ID> [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

27 changes: 27 additions & 0 deletions flyctl/cmd/fly_mpg_users_delete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Delete a user from a Managed Postgres cluster.

## Usage
~~~
fly mpg users delete <CLUSTER_ID> [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

26 changes: 26 additions & 0 deletions flyctl/cmd/fly_mpg_users_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
List users in a Managed Postgres cluster.

## Usage
~~~
fly mpg users list <CLUSTER_ID> [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

27 changes: 27 additions & 0 deletions flyctl/cmd/fly_mpg_users_set-role.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Update a user's role in a Managed Postgres cluster.

## Usage
~~~
fly mpg users set-role <CLUSTER_ID> [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