Skip to content

CLI: Invitations

Commands to create, list, and cancel invitations to a space. Common flags that you can add to any command (--host, --json, and others) are in the CLI command reference.

Command Description
hakocms-cli invitations accept Accept an invitation and join the space
hakocms-cli invitations create Invite a member
hakocms-cli invitations delete Cancel an invitation
hakocms-cli invitations get Get the details of an invitation
hakocms-cli invitations list List invitations that have not been accepted yet

Accept an invitation and join the space.

Accepts an invitation.

Accepts it. If you are logged in with the account for the invitation’s email address, you join; if there is no account, one is created and you join.

ターミナルウィンドウ
hakocms-cli invitations accept [OPTIONS] <TOKEN>
Flag or argument Description
<TOKEN> The token from the link
--name <TEXT> Display name for the account to create
--password-stdin Password for the account to create. Read from the first line of standard input
--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

Invite a member.

ターミナルウィンドウ
hakocms-cli invitations create [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
--email <TEXT> Email address of the person to invite
--role-id <TEXT> ID of the role they get when they join (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

Cancel an invitation.

ターミナルウィンドウ
hakocms-cli invitations delete [OPTIONS] <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
<ID> ID
--force Do it without asking for confirmation

Get the details of an invitation.

The details of an invitation (shown on the acceptance screen)

ターミナルウィンドウ
hakocms-cli invitations get <TOKEN>
Flag or argument Description
<TOKEN> The token from the link

List invitations that have not been accepted yet.

ターミナルウィンドウ
hakocms-cli invitations 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