LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

cs-launch

run JVM applications from Maven coordinates

TLDR

Launch an application by Maven coordinates
$ cs launch [org.scalameta::metals:latest.stable]
copy
Launch with arguments passed to the application
$ cs launch [com.lihaoyi::ammonite:2.5.9] -- [--help]
copy
Launch with a specific main class
$ cs launch [org.example::app:1.0] -M [com.example.Main]
copy
Launch from custom repository
$ cs launch -r [https://repo.example.com/maven] [org.example::app:1.0]
copy
Launch with extra JVM options
$ cs launch [app:version] --java-opt [-Xmx2G]
copy
Launch and fork to background
$ cs launch --fork [app:version]
copy

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.

INSTALL

sudo apt install csound
copy
sudo pacman -S csound
copy
sudo zypper install csound
copy
brew install csound
copy
nix profile install nixpkgs#csound
copy

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)

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid