jbang-alias-add(1)

Name

jbang-alias-add - Add alias for script reference.

Synopsis

jbang alias add -o [-gh] --fresh --quiet --verbose [--config=<config>] [-d=<description>] [-f=<catalogFile>] [-j=<javaVersion>] [-m=<mainClass>] [--name=<name>] [--cp=<classpaths>]…​ [-D=<String=String>]…​ [--deps=<dependencies>]…​ [--java-options=<javaRuntimeOptions>]…​ [--repos=<repositories>]…​ scriptOrFile [params…​]

Description

Add alias for script reference.

Options

--config=<config>

Path to config file to be used instead of the default

--cp, --class-path=<classpaths>

Add class path entries.

-d, --description=<description>

A description for the alias

-D, <String=String>

set a system property

--deps=<dependencies>

Add additional dependencies (Use commas to separate them).

-f, --file=<catalogFile>

Path to the catalog file to use

--fresh

Make sure we use fresh (i.e. non-cached) resources.

-g, --global

Use the global (user) catalog file

-h, --help

Display help/info. Use 'jbang <command> -h' for detailed usage.

-j, --java=<javaVersion>

JDK version to use for running the alias.

--java-options=<javaRuntimeOptions>

A Java runtime option

-m, --main=<mainClass>

Main class to use when running. Used primarily for running jar’s.

--name=<name>

A name for the alias

-o, --offline

Work offline. Fail-fast if dependencies are missing. No connections will be attempted

--quiet

jbang will be quiet, only print when error occurs.

--repos=<repositories>

Add additional repositories.

--verbose

jbang will be verbose on what it does.

Arguments

scriptOrFile

A file or URL to a Java code file

[params…​]

Parameters to pass on to the script