Skip to content
Luna
Esc
↑↓navigate↵open⌘Jpreview
On this page

Invite members

Invite people to your organisation, give each one a role, and change or remove them later.

An organisation holds your projects and the people who work on them. Each person has one role, which decides what they can do in every project of the organisation.

Invite someone

luna orgs invite invites an email address with a role, and prints a link to send them. The link is shown once.

luna orgs invite --email ana@example.com --role developer

The link opens a page where they sign in to their account, or make one with that email address. An invitation lasts seven days. They can also accept it in the Console the next time they log in.

Without --role, the new member is a viewer. Only an owner can invite an owner.

In the Console, go to Members and select Invite member.

Invite without an email address

Leave out --email for a link that anyone can use, once.

luna orgs invite --role viewer

Choose a role

A role is the same in every project of the organisation. Nobody makes roles of their own.

Can Owner Admin Developer Viewer Billing
Deploy code Yes Yes Yes No No
Create and delete environments Yes Yes Yes No No
Add and delete tenants Yes Yes Yes No No
Secrets Change Change Change See names No
App keys Change Change Change See No
Lunas’ data Change Change Change No No
Logs, traces and metrics See See See See No
Usage See See See See See
API tokens Change Change Change No No
Projects Create and delete Create and delete Create No No
Members Change Change See See See
Billing Change Change No No Change
Audit log See See No No No
Organisation name Change Change No No No

An owner can do everything an admin can, and also invite, change and remove owners and delete the organisation.

List members and invitations

luna orgs members lists each member’s account id, email address and role.

luna orgs members

luna orgs invites lists the invitations not yet accepted, with each one’s id and when it expires. Inviting an address again replaces its open invitation.

luna orgs invites

Revoke an invitation

luna orgs revoke-invite takes an invitation back by its id. Its link stops working.

luna orgs revoke-invite <INVITE_ID>

Change a role

luna orgs set-role gives a member a new role, by their account id from luna orgs members.

luna orgs set-role <ACCOUNT_ID> admin

Only an owner can make someone an owner, or change an owner’s role. The member sees the change in the Console.

Remove a member

luna orgs remove removes a member by their account id. It asks first, unless you pass --yes.

luna orgs remove <ACCOUNT_ID>

Anyone can remove themselves, whatever their role. Only an owner can remove an owner.

Keep an owner

An organisation always has at least one owner. Luna refuses to remove the last owner or change their role, so make someone else an owner first.

Next steps

Was this page helpful?