Add a manage send-room-invites command

Schedules a `SendRoomInviteEmailsJob` from the command line, so the room
invite emails can be triggered by hand without an API caller. A worker has
to be running to actually send them.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Devon Hudson
2026-09-16 11:52:03 -06:00
committed by Devon Hudson
co-authored by Claude Opus 5
parent 734734e076
commit 4872e25929
2 changed files with 47 additions and 1 deletions
+13
View File
@@ -151,3 +151,16 @@ Options:
$ mas-cli manage register-user
$ mas-cli manage register-user --yes <username>
```
## `manage send-room-invites`
Send a room invite email to a list of addresses. This schedules the job; a
worker must be running to actually send the emails.
Arguments:
- `<room_id>`: The room to invite the recipients to.
- `<emails>...`: The addresses to invite. At least one is required.
```
$ mas-cli manage send-room-invites '!room:example.com' alice@example.com bob@example.com
```