# Group invitations


```sh
line invites
line invites --json
line invites accept GROUP_ID
line invites reject GROUP_ID --json
```

`line invites` lists pending group invitations with each group's name and full
ID. In a terminal, it then lets you accept, reject, or skip each one.

`accept` and `reject` take a full group ID. Invited groups aren't chats yet, so
names don't work. The CLI first checks that the ID is in your current pending
list; if it isn't, it stops with `invalid_arguments` and sends nothing.

Accepting joins the group. It never registers or fetches an encryption key and
never sends a read receipt; your first `line send` there may register a group
key, as usual. Each change uses a saved request sequence and is attempted once.
If the outcome is unknown, run `line invites` to check before trying again.
`--read-only` blocks `accept` and `reject` but still lists invitations.

LINE doesn't say who invited you in any request the CLI makes, so the inviter
isn't shown. If group names can't be loaded, invitations are still listed with
`name: null` and `name_status: "unavailable"`.


---
Source: https://kongesque.github.io/line-cli/guides/invitations/
