JBANG ALIAS

NAME

jbang alias — Manage aliases for scripts.

SYNOPSIS

jbang alias [OPTIONS] [COMMAND]

Aliases give a short name to a script, jar or GAV (plus any options), so you can run it with jbang <name>. They are stored in the nearest jbang-catalog.json (falling back to your user catalog), or use --global / --file to choose.

Examples:

jbang alias add --name hello hello.java
jbang alias add --global --name cowsay org.example:cowsay:1.0
jbang alias list
jbang alias remove hello

OPTIONS

-h, --help

Display this help and exit

--config=<config>

Path to config file to be used instead of the default

--insecure

Enable insecure trust of all SSL certificates.

--[no-]verbose

jbang will be verbose on what it does.

--[no-]quiet

jbang will be quiet, only print when error occurs.

-o, --[no-]offline

Work offline. Fail-fast if dependencies are missing.

--[no-]fresh

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

-x, --[no-]stacktrace

Print exceptions stacktraces to stderr (even when quiet).

--netrc=<netrc>

Path to a .netrc file for HTTP authentication credentials.

--no-netrc

Disable .netrc authentication lookup.

COMMANDS

  • add - Add alias for script reference.

  • list - Lists locally defined aliases or from the given catalog.

  • remove - Remove existing alias.