sl check-environment

The CLI's Check Environment feature allows you to obtain information about your environment, including:

  • Operating system name and version
  • Whether your ShiftLeft config exists. Please note that the presence of any set environment variables will override those in a configuration file.
  • Your network connectivity (e.g., whether you can reach the CDN and APIs)
  • The ShiftLeft artifacts on your machine


sl check-environment

Checking Language-Specific Options

You can also check your environment for language-specific configurations:

sl check-environment [command options]

Command Options

Command OptionConfiguration to Check
--jvmCheck information regarding your JVM installation
--dotnetCheck information regarding your .NET environment
--jsCheck information regarding your JavaScript environment
--goCheck information regarding your Go environment
--ocularCheck information regarding your Ocular installation

For example, if you run Check Environment with the --jvm flag, you will see information related to your Java installation:

==== JAVA ====
java version "10.0.1" 2018-04-17
Java(TM) SE Runtime Environment 18.3 (build 10.0.1+10)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.1+10, mixed mode)
JDK: ✓ exists

You can check for multiple language-specific configurations by including multiple command options (e.g., sl check-environment --jvm --go).