# Share a project

Projects are private by default, so only your team can open a new project. To let other people in, add them to the project's list from the CLI or from the project's **People** page in the dashboard.

## Share with a person

To share a project with someone, run `grayspar access add` with their email address:

```sh
grayspar access add alice@example.com
```

Grayspar sends Alice an email with a link to the project. Alice opens the link and logs in with Google, GitHub or a code sent to that address. The project also appears under **Shared with you** on Alice's dashboard, so Alice can find it again without the email.

Alice needs no plan and no password. Her email address is her account, so she has to log in with the address you added. Logging in with another address shows a page saying the project isn't shared with that address, with a way to switch accounts.

To add several people at once, list their addresses:

```sh
grayspar access add alice@example.com bob@example.com
```

## Share with a company

To let in everyone who logs in with an address at a company, add the company's domain with an `@` in front:

```sh
grayspar access add @northfold.example
```

Grayspar sends no email for a company, so send the link to the people there yourself. A company can be your own or a client's, and a project can list several.

Only an owner of the team can add a company. Grayspar refuses public mail providers such as `gmail.com`, because anyone can get an address there. A person at one of those providers can still be added by their own address.

## Share with anyone who has the link

To let every visitor in without logging in, set the project's general access to open:

```sh
grayspar access set --mode open
```

```text frame="terminal"
✓ Set access of <project-name> to open
Anyone with the link can open <project-name>, without logging in.
```

Only an owner of the team can open a project this way. Choose it for an app meant for the public, or for an app with a login of its own. Grayspar asks search engines to leave the project out of their results.

Requests to an open project carry no [identity headers](/docs/sharing/identity-headers/), because nobody logged in. The list keeps its entries while the project is open. To use the list again, run:

```sh
grayspar access set --mode restricted
```

## See who can open a project

To see the list and whether each person has opened the project, run `grayspar access`:

```text frame="terminal"
Only the team and the people and companies on its list can open <project-name>.

PERSON OR COMPANY     STATUS
alice@example.com     opened it
bob@example.com       not opened yet
@northfold.example    anyone at this company
```

## Remove access

To remove a person or a company from the list, run `grayspar access remove` with the same address or domain:

```sh
grayspar access remove bob@example.com
```

Grayspar checks the list on every request, so Bob's next request is turned away.

## Choose the project

These commands act on the project your folder is linked to. To act on another project, name it with `--project`:

```sh
grayspar access add alice@example.com --project <project-name>
```