> For the complete documentation index, see [llms.txt](https://docs.onepub.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.onepub.dev/guides/cli-integration/cli-tools.md).

# login

## Authentication

Before you can run any OnePub command, you must first log in to OnePub.

```
onepub login
```

{% hint style="warning" %}
You don't need to run `dart pub token add`  as the   `onepub login` command does this for you.
{% endhint %}

#### Multiple devices

You can log in to the OnePub CLI from multiple devices.
