N Nightship
Guides / Administration
// administration

Invites and onboarding

Bring people onto a server with single-use invite codes instead of handing out tokens. An invite assigns groups, so a new member immediately follows the right channels.

Set up groups first

An invite grants access through the groups it carries, so create the groups and give them channels before inviting anyone (see Users, roles, and groups):

nightship group create testers --server https://builds.example.com
nightship group assign-channel testers latest --server https://builds.example.com

Create an invite

nightship invite create teammate --groups testers --days 7 \
  --server https://builds.example.com

The invite is single-use and expires after --days. Hand the printed code to the person.

Screenshot — creating an invite in the Admin page (groups + expiry)
Creating an invite, in the app.

What the invitee does

They redeem it in the desktop app (Join with invite…) or from the CLI, and their client starts following the channels their groups grant — the other side of this is Join a server with an invite:

nightship join https://builds.example.com <code> --install-root <path>
Prefer invites over sharing tokens: they’re single-use, time-boxed, and scoped to groups. Revoke one before it’s used with nightship invite revoke. Lost the code? Re-issue invite in Admin → Invites revokes the old one and shows a fresh code.

Access requests

Someone who knows your server’s URL but has no invite can ask for one: in the app, Add server → Request access… (or nightship request-access <url> --name jane --email jane@example.com). The request shows up at the top of Admin → Invites. Approve mints the invite and opens a mail to them with the code — the server never sends mail itself; Decline removes the request quietly. From the CLI: nightship requests, nightship request approve <id>.

← All guides