Environment variables
Scala CLI uses environment variables to configure its behavior. Below you can find a list of environment variables used and recognized by Scala CLI.
However, it should by no means be treated as an exhaustive list. Some tools and libraries Scala CLI integrates with may have their own, which may or may not be listed here.
Scala CLI
SCALA_CLI_CONFIG
: Scala CLI configuration file pathSCALA_CLI_HOME
: Scala CLI home directorySCALA_CLI_INTERACTIVE
: Interactive mode toggleSCALA_CLI_INTERACTIVE_INPUTS
: Interactive mode inputsSCALA_CLI_POWER
: Power mode toggleSCALA_CLI_PRINT_STACK_TRACES
: Print stack traces toggleSCALA_CLI_SODIUM_JNI_ALLOW
: Allow to load libsodiumjniSCALA_CLI_VENDORED_ZIS
: Toggle io.github.scala_cli.zip.ZipInputStream
Java
JAVA_HOME
: Java installation directoryJAVA_OPTS
: Java optionsJDK_JAVA_OPTIONS
: JDK Java options
Bloop
BLOOP_COMPUTATION_CORES
: ⚡ Number of computation cores to be usedBLOOP_DAEMON_DIR
: ⚡ Bloop daemon directoryBLOOP_JAVA_OPTS
: ⚡ Bloop Java optionsBLOOP_MODULE
: ⚡ Bloop default moduleBLOOP_PORT
: ⚡ Bloop default portBLOOP_SCALA_VERSION
: ⚡ Bloop default Scala versionBLOOP_VERSION
: ⚡ Bloop default versionBLOOP_SERVER
: ⚡ Bloop default hostSCALA_CLI_EXTRA_TIMEOUT
: ⚡ Extra timeout
Coursier
COURSIER_BIN_DIR
: Coursier app binaries directoryCOURSIER_CACHE
: Coursier cache locationCOURSIER_CONFIG_DIR
: Coursier configuration directoryCOURSIER_CREDENTIALS
: Coursier credentialsINSIDE_EMACS
: Emacs toggleCOURSIER_EXPERIMENTAL
: Experimental mode toggleCOURSIER_JNI
: Coursier JNI toggleCOURSIER_MODE
: Coursier mode (can be set to 'offline')COURSIER_NO_TERM
: Terminal toggleCOURSIER_PROGRESS
: Progress bar toggleCOURSIER_REPOSITORIES
: Coursier repositoriesCOURSIER_VENDORED_ZIS
: Toggle io.github.scala_cli.zip.ZipInputStreamCS_MAVEN_HOME
: Coursier Maven home directory
Spark
SPARK_HOME
: ⚡ Spark installation directory
Miscellaneous
PATH
: The app path variableDYLD_LIBRARY_PATH
: Runtime library paths on Mac OS XLD_LIBRARY_PATH
: Runtime library paths on LinuxPATHEXT
: Executable file extensions on WindowsSHELL
: The currently used shellVCVARSALL
: Visual C++ Redistributable RuntimesZDOTDIR
: Zsh configuration directory
Internal
CI
: ⚡ Marker for running on the CI