> Markdown version of https://tuna.am/en/docs/cli/mesh/login/. Documentation index: [llms.txt](https://tuna.am/en/llms.txt), full text in one file: [llms-full.txt](https://tuna.am/en/llms-full.txt). Any page is available as Markdown: append `.md` to its URL without the trailing slash.

# tuna mesh login

Log this device into a mesh team.

Adds this device to your mesh team. In a terminal it asks how to log in: through the browser on this machine, by a link and code confirmed from another device, or with an enroll token issued in the dashboard. Servers and automation pass the token with `--enroll-token` or `TUNA_MESH_ENROLL_TOKEN`.

Usage

```bash
tuna mesh login [flags]

```

Examples

```bash
tuna mesh login
tuna mesh login --no-browser
TUNA_MESH_ENROLL_TOKEN=<token> tuna mesh login

```

| Flag                    | Description                                                                                     |
| ----------------------- | ----------------------------------------------------------------------------------------------- |
| `--enroll-token string` | Enroll token from the dashboard, for servers and automation (or `TUNA_MESH_ENROLL_TOKEN`).      |
| `--no-browser`          | Print a link and code to confirm the login from another device, for machines without a browser. |
| `--web`                 | Log in through the browser on this machine without asking for the method.                       |
| `--env string`          | Deprecated in 0.43: the device environment tag is no longer used and will be removed.           |

[Global flags](https://tuna.am/en/docs/cli.md#global-flags) work too.

## History

|        |                                                                                                |
| ------ | ---------------------------------------------------------------------------------------------- |
| 0.43.0 | Deprecated the `--env` flag: the device environment tag is no longer used and will be removed. |
| 0.41.0 | Added the `--enroll-token`, `--no-browser` and `--web` flags.                                  |
| 0.35.0 | Command added.                                                                                 |
