Overview
The Scala CLI makes it easier to compile, run, test, and package Scala code.
It can:
- compile Scala code
- run it
- package it as a JAR file, or in formats such as deb, rpm, MSI, ...
- fire up a REPL, letting you quickly play with the code
- compile and run tests suites
... and more!
Scala CLI supports most recent Scala versions (3.x
, 2.13.x
and 2.12.x
), and changing the Scala version as easy as providing the --scala
parameter. (See the cookbook for more information.)
As well as compiling and running Scala code with the JVM (the default), Scala CLI also supports Scala.js and Scala Native.
Installation
Prefer another way to install Scala CLI? See our Advanced installation guide.