sl check-environment

The check-environment feature allows you to obtain information about your environment, including:

  • Operating system name and version
  • Whether your ShiftLeft config exists.
  • 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 check your environment for language-specific configurations as follows:

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


If you run sl 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).