commands.sh

scala

all

Scala application launcher and interactive interpreter.

More info →

Options (2)

--extra-jarsboolean

Start the interpreter with a dependency in the [c]lass[p]ath

Example: scala {{[-cp|--extra-jars]}} {{filename.jar}} {{command}}
-e, --execute-scriptboolean

Execute a single Scala command

Example: scala {{[-e|--execute-script]}} {{command}}

Examples (5)

Start a REPL (interactive shell)

Start the interpreter with a dependency in the [c]lass[p]ath

scala [-cp|--extra-jars] filename.jar command

Execute a Scala script

scala script.scala

Execute a `.jar` program

scala filename.jar

Execute a single Scala command

scala [-e|--execute-script] command
made by @shridhargupta | data from tldr-pages