In Java, reading environment variables is done with System.getenv().
System.getenv()
Is there a way to do this in Scala?
To print all environment variables, you can use
System.getenv.forEach((name, value) => println(s"$name: $value"))