CLI: Members
Commands to list a space’s members, change their roles, and remove them. Common flags that you can add to any command (--host, --json, and others) are in the CLI command reference.
For how to use them, see Invite members and set roles with the CLI.
| Command | Description |
|---|---|
hakocms-cli members leave |
Leave a space yourself |
hakocms-cli members list |
List members |
hakocms-cli members remove |
Remove a member |
hakocms-cli members update |
Change a member’s role |
hakocms-cli members leave
Section titled “hakocms-cli members leave”Leave a space yourself.
Leaves the space yourself.
Does not require members.manage.
hakocms-cli members leave [OPTIONS]| Flag or argument | Description |
|---|---|
-s, --space <SLUG> |
Space. If omitted: HAKOCMS_SPACE, hakocms-cli.toml, then the one set with spaces use, in that order |
--force |
Do it without asking for confirmation |
hakocms-cli members list
Section titled “hakocms-cli members list”List members.
hakocms-cli members list [OPTIONS]| Flag or argument | Description |
|---|---|
-s, --space <SLUG> |
Space. If omitted: HAKOCMS_SPACE, hakocms-cli.toml, then the one set with spaces use, in that order |
hakocms-cli members remove
Section titled “hakocms-cli members remove”Remove a member.
hakocms-cli members remove [OPTIONS] <USER_ID>| Flag or argument | Description |
|---|---|
-s, --space <SLUG> |
Space. If omitted: HAKOCMS_SPACE, hakocms-cli.toml, then the one set with spaces use, in that order |
<USER_ID> |
User ID |
--force |
Do it without asking for confirmation |
hakocms-cli members update
Section titled “hakocms-cli members update”Change a member’s role.
hakocms-cli members update [OPTIONS] <USER_ID>| Flag or argument | Description |
|---|---|
-s, --space <SLUG> |
Space. If omitted: HAKOCMS_SPACE, hakocms-cli.toml, then the one set with spaces use, in that order |
<USER_ID> |
User ID |
--role-id <TEXT> |
ID of the new role (see roles list) |
--data <JSON> |
The whole body (JSON). Use @file to read from a file, - to read from standard input. Other flags are applied on top of it |