cs-launch
run JVM applications from Maven coordinates
TLDR
Launch an application by Maven coordinates
SYNOPSIS
cs launch [options] coordinates [-- app-args]
DESCRIPTION
cs launch runs JVM applications directly from their Maven coordinates without prior installation. It resolves dependencies, downloads artifacts, and executes the application in a single command.
This enables trying applications without installing them, running specific versions for testing, or scripting application execution. Dependencies are cached, so subsequent launches of the same version are fast.
The command supports both Scala (using :: for cross-versioning) and Java artifacts. It can launch any artifact with a main class defined in its manifest or explicitly specified.
PARAMETERS
COORDINATES
Maven coordinates (groupId::artifactId:version for Scala, groupId:artifactId:version for Java).-M CLASS, --main-class CLASS
Specify the main class to run.-r URL, --repository URL
Add a custom Maven repository.--java-opt OPT
JVM options passed to the launched application.--fork
Fork the process and return immediately.--standalone
Include all dependencies in classpath.--
Separator between cs options and application arguments.-q, --quiet
Suppress coursier output.
CAVEATS
First launch downloads dependencies which takes time. Network connectivity required for new artifacts. Large applications with many dependencies consume significant cache space. Some applications may require specific JVM versions.
HISTORY
cs launch is part of Coursier, created by Alexandre Archambault. The launch functionality enables the "run without install" workflow popularized by tools like npx, applied to the JVM ecosystem.
SEE ALSO
cs(1), cs-resolve(1), java(1), scala(1)
