# Install & Authenticate The CLI

## Install the CLI

The CLI's primary distribution is via Homebrew. We recommend you install via Homebrew, [even on Linux](https://docs.brew.sh/Homebrew-on-Linux).

### brew installation

```sh
brew install CosineAI/tap/cos
cos --version
```

### Linux

{% hint style="info" %}
We recommend installation via [Homebrew](https://docs.brew.sh/Homebrew-on-Linux).
{% endhint %}

If you prefer not using Homebrew on Linux, you can install via:

```sh
curl -fsSL https://cosine.sh/install | bash
```

#### Dependencies

For the CLI to function correctly, we require the following tools:

* fzf
* ripgrep

```sh
sudo apt update
sudo apt install ripgrep fzf
```

### Windows

Support for Windows is currently untested. If you would like to be part of our Windows beta, please reach out to <support@cosine.sh>

## Authenticate the CLI

{% hint style="info" %}
You need to have a Cosine account and a GitHub project imported to your team to fully utilise the CLI.
{% endhint %}

Sign in to Cosine: <https://cosine.sh/login>

Then, within your terminal:

```sh
cos login
```
