# Authenticate via the CLI

Run this command to get authenticated:

```
az login
```

This will result in a web browser opening, or a URL prompt. Navigating to this url will prompt you for a code, which you’ve been provided in the command line. Paste it in, click next, and select the proper account.

Resource: [https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-macos](https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-macos)