Among other gems, this post by @toniogela on crossplatform testing of the @typelevel toolkit includes an example of running scala-cli within a JVM from ordinary , which could be useful for a bunch of tricks. toniogela.dev/testing-typeleve