> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pxxl.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Teams

> Share projects, databases and domains with teammates in a spaceship, and control what each person can do.

A team on Pxxl is called a **spaceship**. It's a shared workspace: projects, environment variables, domains, databases, sandboxes, cron jobs and storage that belong to the team rather than to one person. Members see and work on the same things, with a role that sets what they're allowed to change.

Use a spaceship as soon as more than one person works on an app, when a client or co-founder needs to see deploys and logs, or when you want billing to sit with one owner while others ship.

| | Free | Plus | Pro | Enterprise |
| - | - | - | - | - |
| Spaceships you can own | — | 1 | 5 | 15 |
| Members per spaceship | — | 3 | 10 | 50 |
| Extra seats you can buy | — | Up to 7 | Up to 20 | In your contract |

Read-only viewers are free and don't use a seat.

## How a spaceship works

* **The owner pays.** Everything in the spaceship counts toward the owner's plan, and the owner's plan decides the limits and features members get.
* **Each member keeps their own account.** Members can still have personal projects outside the spaceship.
* **You switch between workspaces.** The switcher in the top-left of the dashboard shows your personal workspace and every spaceship you belong to. Whatever you create is created in the workspace that's selected.

## Create a spaceship

**1. Open Team**

Choose **Team** in the dashboard sidebar.

**2. Create it**

Give the spaceship a name and create it. You're its owner.

**3. Switch to it**

Pick it in the workspace switcher. New projects, databases and domains now go into the spaceship.

If your plan doesn't include teams you'll see "Your current plan does not include team workspaces". Upgrade to Plus or above from [Plans](https://docs.pxxl.app/account/plans.md).

## Invite people

**1. Send the invitation**

In **Team**, choose **Invite**, enter the person's email, pick a role and, if you like, add a message.

**2. They accept**

They get an email and, if they already have a Pxxl account, a notification in the dashboard. People without an account sign up first, then accept.

**3. They're in**

Once accepted, they appear under members with the role you chose.

Invitations are valid for 7 days. You can resend or cancel a pending invitation from the same page. A pending invitation holds a seat until it's accepted, declined or cancelled.

People can only join through an invitation. There's no way to add someone directly.

## Roles

| Role | What they can do |
| - | - |
| **Owner** | Everything, including billing, deleting the spaceship and transferring it. There's one owner. |
| **Admin** | Create, view, change and delete everything, including billing and members. |
| **Moderator** | Create, view and change everything except billing. Can invite and update members. Can't delete. |
| **Developer** | Create, view and change projects, environment variables, domains, databases, sandboxes, cron jobs and storage. Can see members, not billing. |
| **Editor** | Same as Developer. |
| **Viewer** | Read-only access to projects, domains, databases, sandboxes, cron jobs and storage. Can't see environment variables or billing. Doesn't use a seat. |

New invitations default to **Viewer**.

You can also fine-tune a member's permissions per area (projects, environment variables, domains, databases, sandboxes, cron jobs, storage, billing, members). The rules:

* You can only give roles below your own, and only permissions you have yourself.
* Only the owner can add or change admins.
* Nobody can change their own role.

## Bring your work into a spaceship

Open a personal project's settings and move it to the spaceship. From then on the spaceship owner pays for it. Databases and domains can be added to a spaceship the same way.

## Extra seats

When the spaceship is full, the owner can buy extra seats for ₦2,000 or \$1.50 per seat per month (20% off yearly). The first period is prorated; removing seats takes effect at the next renewal.

If the owner's plan drops or a renewal goes unpaid, extra seats stop counting. Existing members stay, but new invitations wait until there's room.

## Leave, transfer or delete

* **Leave**: any member except the owner can leave from **Team**.
* **Transfer ownership**: the owner picks another member. The new owner's plan must include teams and fit the spaceship's members, projects, databases and domains. Billing moves to them, and the old owner stays on as an admin.
* **Delete**: only the owner can delete a spaceship. Choose whether its projects move back to your personal workspace (the default) or are deleted.

An owner who tries to leave sees "Transfer ownership to another member first, or delete the spaceship."

## Use a spaceship from the CLI and API

The [CLI](https://docs.pxxl.app/cli/overview.md) works in your personal workspace until you pick a team:

```bash theme={null}
pxxl team list            # spaceships you belong to
pxxl team use <team-id>   # make one the default for every command
pxxl team current         # show the selected spaceship
pxxl team clear           # go back to your personal workspace
```

Set `PXXL_TEAM_ID` to override the selected team for one command or in CI:

```bash theme={null}
PXXL_TEAM_ID=<team-id> pxxl projects list
```

An [API key](https://docs.pxxl.app/account/settings.md#api-keys) created for a spaceship only works inside that spaceship. Using it with another team's ID returns `403 API key is scoped to a different spaceship`.

## Where to go next

> [card] [API keys and settings](https://docs.pxxl.app/account/settings.md)
>
> Create keys for the CLI, SDK and CI.

> [card] [Plans and usage](https://docs.pxxl.app/account/plans.md)
>
> Team and seat limits by plan.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.