anchorectl user
User related operations.
Every command on this page also accepts the global flags.
Subcommands
- user add — Create a new user
- user delete — Delete a specific user credential by username of the credential. Cannot be the credential used to authenticate the request.
- user get — Get a specific user in the specified account
- user list — List users for the account
- user set-password — Set the password for a user
user add
Create a new user.
anchorectl user add USERNAME [flags]
Arguments
| Argument | Description |
|---|---|
USERNAME | The name of the user to create. |
Flags
| Flag | Type | Environment variable | Default | Required | Description |
|---|---|---|---|---|---|
--account | string | ANCHORECTL_USER_ACCOUNT | "" | No | The account to use, defaults to current account. |
--idp_name | string | ANCHORECTL_IDP_NAME | "" | No | The name of the IDP user will be authenticated with. |
-o, --output | string | ANCHORECTL_FORMAT | text | No | The format to show the results. Allowable values: text, json, id. See Output Formats. |
--role | string (repeatable) | ANCHORECTL_USER_ROLE | [] | No | The initial role(s) for the user. Defaults to (read-write) when not in the admin account. |
user delete
Delete a specific user credential by username of the credential. Cannot be the credential used to authenticate the request.
anchorectl user delete USERNAME [flags]
Aliases: del
Arguments
| Argument | Description |
|---|---|
USERNAME | Name of the user to delete. |
Flags
| Flag | Type | Environment variable | Default | Required | Description |
|---|---|---|---|---|---|
--account | string | ANCHORECTL_USER_ACCOUNT | "" | No | The account to use, defaults to current account. |
-o, --output | string | ANCHORECTL_FORMAT | text | No | The format to show the results. Allowable values: text, json, json-raw, id. See Output Formats. |
user get
Get a specific user in the specified account.
anchorectl user get USERNAME [flags]
Arguments
| Argument | Description |
|---|---|
USERNAME | Name of the user to fetch. |
Flags
| Flag | Type | Environment variable | Default | Required | Description |
|---|---|---|---|---|---|
--account | string | ANCHORECTL_USER_ACCOUNT | "" | No | The account to use, defaults to current account. |
-o, --output | string | ANCHORECTL_FORMAT | text | No | The format to show the results. Allowable values: text, json, json-raw, id. See Output Formats. |
user list
List users for the account.
anchorectl user list [flags]
Flags
| Flag | Type | Environment variable | Default | Required | Description |
|---|---|---|---|---|---|
--account | string | ANCHORECTL_USER_ACCOUNT | "" | No | The account to use, defaults to current account. |
-o, --output | string | ANCHORECTL_FORMAT | text | No | The format to show the results. Allowable values: text, json, json-raw, id. See Output Formats. |
user set-password
Set the password for a user.
anchorectl user set-password USERNAME [flags]
Arguments
| Argument | Description |
|---|---|
USERNAME | Name of the user to set the password for. |
Flags
| Flag | Type | Environment variable | Default | Required | Description |
|---|---|---|---|---|---|
--account | string | ANCHORECTL_USER_ACCOUNT | "" | No | The account to use, defaults to the current account. |
-o, --output | string | ANCHORECTL_FORMAT | text | No | The format to show the results. Allowable values: text, json, json-raw, id. See Output Formats. |