teactl member
Manage organization members. Members are users who have access to an organization and its projects.
Synopsis
teactl member <command> [flags] Commands
| Command | Description |
|---|---|
list | List organization members |
get | Get member details |
invite | Invite a new member |
update | Update member role |
remove | Remove a member |
resend | Resend invitation email |
teactl member list
List all members in an organization.
teactl member list [flags] Flags:
| Flag | Short | Description |
|---|---|---|
--org | -o | Organization (defaults to current context) |
--role | Filter by role (admin, member) | |
--status | Filter by status (active, pending, suspended) | |
--output | Output format (table, json, yaml) |
Example:
$ teactl member list
EMAIL NAME ROLE STATUS JOINED
[email protected] Alice Admin admin active 2024-01-15
[email protected] Bob Developer member active 2024-01-20
[email protected] - member pending 2024-03-01 Filter by role:
$ teactl member list --role admin
EMAIL NAME ROLE STATUS JOINED
[email protected] Alice Admin admin active 2024-01-15
[email protected] Carol Ops admin active 2024-02-10 teactl member get
Get detailed information about a member.
teactl member get <email> [flags] Arguments:
| Argument | Description |
|---|---|
email | Member’s email address |
Example:
$ teactl member get [email protected]
Member: [email protected]
Name: Bob Developer
ID: user_abc123
Role: member
Status: active
Joined: 2024-01-20 09:15:00
Activity:
Last login: 2024-03-10 14:30:00
Environments: 23 created
Last active: 2024-03-10 16:45:00
Projects:
- default (full access)
- training (full access)
- production (read-only) teactl member invite
Invite a new member to the organization.
teactl member invite <email> [flags] Arguments:
| Argument | Description |
|---|---|
email | Email address to invite |
Flags:
| Flag | Description |
|---|---|
--org | Organization to invite to |
--role | Role to assign (admin, member). Default: member |
--message | Custom message in invitation email |
Example:
# Invite as member (default role)
$ teactl member invite [email protected]
Invitation sent to [email protected]
Role: member
Expires: 2024-03-17 (7 days)
The user will receive an email with instructions to join. Invite as admin:
$ teactl member invite [email protected] --role admin
Invitation sent to [email protected]
Role: admin
Expires: 2024-03-17 (7 days) With custom message:
$ teactl member invite [email protected] --message "Welcome to the team! Please set up your account to access our training environments."
Invitation sent to [email protected] Note
Invitations expire after 7 days. Use `teactl member resend` to send a new invitation if needed.
teactl member update
Update a member’s role.
teactl member update <email> [flags] Arguments:
| Argument | Description |
|---|---|
email | Member’s email address |
Flags:
| Flag | Description |
|---|---|
--role | New role (admin, member) |
Example:
# Promote to admin
$ teactl member update [email protected] --role admin
Member '[email protected]' updated.
New role: admin Demote from admin:
$ teactl member update [email protected] --role member
Member '[email protected]' updated.
New role: member Warning
You cannot change your own role. Another admin must make changes to your membership.
teactl member remove
Remove a member from the organization.
teactl member remove <email> [flags] Arguments:
| Argument | Description |
|---|---|
email | Member’s email address |
Flags:
| Flag | Description |
|---|---|
--yes | Skip confirmation prompt |
Example:
$ teactl member remove [email protected]
Remove '[email protected]' from organization 'acme-corp'?
This will revoke all access to organization resources. [y/N]: y
Member '[email protected]' removed from organization. Note
Removing a member does not delete their environments. Environments they created remain in the organization and can be managed by admins.
teactl member resend
Resend an invitation to a pending member.
teactl member resend <email> [flags] Arguments:
| Argument | Description |
|---|---|
email | Email address of pending invitation |
Example:
$ teactl member resend [email protected]
Invitation resent to [email protected]
New expiration: 2024-03-17 (7 days) Member Roles
Teabar has a simple role model:
| Role | Permissions |
|---|---|
| admin | Full access to organization, can manage members, billing, and all projects |
| member | Can create and manage environments in accessible projects |
Admin Capabilities
- Invite and remove members
- Change member roles
- Create and delete projects
- Access all projects and environments
- Manage organization settings
- View billing and usage
Member Capabilities
- Create environments in accessible projects
- Manage own environments
- View project resources
- Cannot manage members or organization settings
Bulk Operations
Invite multiple members at once using a file:
# Create a file with emails (one per line)
$ cat invites.txt
[email protected]
[email protected]
[email protected]
# Invite all
$ cat invites.txt | xargs -I {} teactl member invite {} Global Flags
These flags work with all member commands:
| Flag | Short | Description |
|---|---|---|
--org | -o | Target organization |
--output | Output format (table, json, yaml) | |
--quiet | -q | Minimal output |
--verbose | -v | Verbose output |
See Also
- teactl org - Manage organizations
- teactl project - Manage projects
- Administration: Members - Web console member management
- Organizations Concept - Understanding organizations and members