Running Scala REPL session inside sbt

If you have installed scala using sbt(simple built tool) then you might be wondering how to run REPL session. This article will show you the steps to run REPL session.

First of all install sbt using following link:
https://www.scala-lang.org/download/scala3.html

Type sbt in terminal.

> sbt

then type console in terminal.

> console
https://repo1.maven.org/maven2/org/scala-sbt/util-interface/1.5.0/util-interface-1.5.0.jar
100.0% [##########] 2.5 KiB (6.9 KiB / s)
[info] Non-compiled module ‘compiler-bridge_2.12’ for Scala 2.12.14. Compiling…
[info] Compilation completed in 6.382s.
[info] Starting scala interpreter…
Welcome to Scala 2.12.14 (OpenJDK 64-Bit Server VM, Java 1.8.0_275).
Type in expressions for evaluation. Or try :help.

This would start REPL session
scala>

Now you can type in your commands here.

--

--