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
- Linux/macOS
- Windows
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.
sl auth
to authenticate
Using 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.
- Linux/macOS
- Windows
sl auth --token "YOUR_ACCESS_TOKEN"