> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/sast-and-sca/cli/install.md).

# Install

This article will show you how to install the Qwiet CLI and how to associate it with your Qwiet account.

### Step 1: Download and install the Qwiet CLI <a href="#step-1-download-and-install-the-qwiet-cli" id="step-1-download-and-install-the-qwiet-cli"></a>

{% tabs %}
{% tab title="Linux/macOS" %}
Run the following shell command:

```
curl https://cdn.shiftleft.io/download/sl >/usr/local/bin/sl && chmod a+rx /usr/local/bin/sl
```

![](/files/CRrxFX9wuboXxDrdB2dv)

![](/files/DfHDmRpYn5HJOmhRtTva) ![](/files/P5vj8JOtHNJWVEvAqKym)
{% endtab %}

{% tab title="Windows" %}
Run the following Powershell command to begin your download:

```
Invoke-WebRequest -Uri 'https://cdn.shiftleft.io/download/sl-latest-windows-x64.zip' -OutFile sl-latest-windows-x64.zip
```

![](/files/DfHDmRpYn5HJOmhRtTva) ![](/files/P5vj8JOtHNJWVEvAqKym)

Extract the contents of the archive:

```
Expand-Archive -Path sl-latest-windows-x64.zip -DestinationPath .
```

![](/files/DfHDmRpYn5HJOmhRtTva) ![](/files/P5vj8JOtHNJWVEvAqKym)

Add the Qwiet CLI to your system `PATH`.
{% endtab %}
{% endtabs %}

### Step 2: Authenticate with Qwiet <a href="#step-2-authenticate-with-qwiet" id="step-2-authenticate-with-qwiet"></a>

Once you have the Qwiet CLI installed, you need to associate the CLI with your Qwiet account.

First, you'll need your access token, which you can obtain in the [Dashboard](https://app.shiftleft.io/user/profile).

Once you have your access token, create an environment variable called `SHIFTLEFT_ACCESS_TOKEN` and set its value to your access token.

### Using `sl auth` to authenticate <a href="#using-sl-auth-to-authenticate" id="using-sl-auth-to-authenticate"></a>

While setting an environment variable called `SHIFTLEFT_ACCESS_TOKEN` and using that to authenticate is the preferred method, you can also run `sl auth` to link the CLI with your Qwiet account.

{% tabs %}
{% tab title="Linux/macOS" %}

```
sl auth  --token "YOUR_ACCESS_TOKEN"
```

![](/files/DfHDmRpYn5HJOmhRtTva) ![](/files/P5vj8JOtHNJWVEvAqKym)
{% endtab %}

{% tab title="Windows" %}

```
sl.exe auth --token "YOUR_ACCESS_TOKEN"
```

![](/files/DfHDmRpYn5HJOmhRtTva) ![](/files/P5vj8JOtHNJWVEvAqKym)
{% endtab %}
{% endtabs %}
