Command-line tool to compile, run, test and package Scala code
open sourceApache-2.0free
Scala CLI is a command-line tool for working with the Scala language: it compiles, runs, tests and packages Scala code in scripts, playgrounds and single-module projects, with no configuration file needed, since dependencies, Scala and JVM versions and compiler options can be set in the source files or on the command line. It's compiled to native code and hands compilation to Bloop for speed. Since Scala 3.5.0 it's the default Scala runner, shipped as scala with the official language installation. VirtusLab develops and maintains it.
Problems it solves
- run a single Scala script with dependencies without setting up sbt
- quickly try out a Scala library or a different JVM version
- build and package a small Scala project with no build configuration
Features
- Compile, run, test and package Scala code
- Dependencies and options declared in source files
- Scripts and REPL-style playgrounds
- Native binary with Bloop compilation server
- Default
scalarunner since Scala 3.5.0 - Install with Homebrew, WinGet, or a GitHub Action
Alternatives
The same job
These do what Scala CLI does.