HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

cs launch — Launch an application from the name directly from Maven dependencies without the need of installing

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecommandfromcs launchnamelaunchcliapplication

Problem

How to use the cs launch command: Launch an application from the name directly from Maven dependencies without the need of installing it. More information: <https://get-coursier.io/docs/cli-launch>.

Solution

cs launch — Launch an application from the name directly from Maven dependencies without the need of installing it. More information: <https://get-coursier.io/docs/cli-launch>.

Launch a specific application with arguments:
cs launch {{application_name}} -- {{argument1 argument2 ...}}


Launch a specific application version with arguments:
cs launch {{application_name}}:{{application_version}} -- {{argument1 argument2 ...}}


Launch a specific version of an application specifying which is the main file:
cs launch {{group_id}}:{{artifact_id}}:{{artifact_version}} --main-class {{path/to/main_class_file}}


Launch an application with specific Java options and JVM memory ones:
cs launch --java-opt {{-Doption_name1:option_value1 -Doption_name2:option_value2 ...}} --java-opt {{-Xjvm_option1 -Xjvm_option2 ...}} {{application_name}}

Code Snippets

Launch a specific application with arguments

cs launch {{application_name}} -- {{argument1 argument2 ...}}

Launch a specific application version with arguments

cs launch {{application_name}}:{{application_version}} -- {{argument1 argument2 ...}}

Launch a specific version of an application specifying which is the main file

cs launch {{group_id}}:{{artifact_id}}:{{artifact_version}} --main-class {{path/to/main_class_file}}

Launch an application with specific Java options and JVM memory ones

cs launch --java-opt {{-Doption_name1:option_value1 -Doption_name2:option_value2 ...}} --java-opt {{-Xjvm_option1 -Xjvm_option2 ...}} {{application_name}}

Context

tldr-pages: common/cs launch

Revisions (0)

No revisions yet.