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 |
hakocms-cli invitations accept
Section titled “hakocms-cli invitations accept”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 |
hakocms-cli invitations create
Section titled “hakocms-cli invitations create”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 |
hakocms-cli invitations delete
Section titled “hakocms-cli invitations delete”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 |
hakocms-cli invitations get
Section titled “hakocms-cli invitations get”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 |
hakocms-cli invitations list
Section titled “hakocms-cli invitations list”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 |