Skip to content

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

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

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

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

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