JBANG
SYNOPSIS
jbang [-hV] [--config=<config>] [--insecure] [--[no-]verbose] [--[no-]quiet] [--[no-]offline] [--[no-]fresh] [--[no-]stacktrace] [COMMAND]
jbang init hello.java [args...]
(to initialize a script)
or jbang edit --open=code --live hello.java
(to edit a script in IDE with live updates)
or jbang hello.java [args...]
(to run a .java file)
or jbang gavsearch@jbangdev [args...]
(to run an alias from a catalog)
or jbang group-id:artifact-id:version [args...]
(to run a .jar file found with a GAV id)
note: run is the default command. To get help about run use jbang run --help
OPTIONS
- -h, --help
-
Display this help and exit
- -V, --version
-
Display version info (use
jbang --verbose versionfor more details) - --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).
COMMANDS
-
run - Builds and runs provided script. (default command)
-
build - Compiles and stores script in the cache.
-
init - Initialize a script.
-
edit - Setup a temporary project to edit script in an IDE.
-
deps - Manage dependencies in jbang files.
-
cache - Manage compiled scripts in the local cache.
-
export - Export the result of a build or the set of the sources to a project.
-
jdk - Manage Java Development Kits installed by jbang.
-
config - Read and write configuration options.
-
trust - Manage which domains you trust to run scripts from.
-
alias - Manage aliases for scripts.
-
template - Manage templates for scripts.
-
catalog - Manage Catalogs of aliases.
-
app - Manage scripts installed on the user’s PATH as commands.
-
completion - Generate bash/zsh or fish completion script for jbang.
-
info - Provides info about the script for tools (and humans who are tools).
-
version - Display version info.
-
wrapper - Manage jbang wrapper for a folder.