Install

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

Step 1: Download and install the ShiftLeft CLI

Run the following shell command:

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

Step 2: Authenticate with ShiftLeft

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

First, you'll need your access token, which you can obtain in the Dashboard.

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

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 ShiftLeft account.

sl auth --token "YOUR_ACCESS_TOKEN"