This is a catalog to use with jbang.
Each alias below shows how to run it with JBang.
For this you need to have jbang installed and available in your PATH.
See the JBang website for options on how to install JBang.
Script that says hello back for each argument
jbang hello@jbangdev
Dump table of System properties
jbang properties@jbangdev
Analyze JBang script dependencies
jbang deps@jbangdev
Dump table of Environment Variables
jbang env@jbangdev
gavsearch lets you use search.maven.org from command line.
Example: gavsearch hibernate will search for artifacts with hibernate in its name.
You can use any of the search modifiers search.maven.org supports, i.e.:
gavsearch c:QuarkusTest will search for artifacts with class QuarkusTest
jbang gavsearch@jbangdev
Git command line tool implemented with jgit. Lets you do basic git features without installing git!
jbang git@jbangdev
jbang bouncinglogo@jbangdev
jbang h2@jbangdev
jbang catalog2readme@jbangdev
httpd runs a webserver serving out the content of a directory.
Example: jbang httpd@jbangdev -d _site will serve out the _site folder on localhost:8000.
jbang httpd@jbangdev
Experimental utility to download Java distributions using api.foojay.io.
jbang getjava@jbangdev
jbang ec@jbangdev
jbang faker@jbangdev
jbang dalle@jbangdev
Bootstrap a jbang script to make it self-contained.
jbang bootstrap@jbangdev
jbang jmc@jbangdev
mf is a command-line tool for extracting and displaying JAR manifest information.
mf <jar-file> [--json] [--yaml] [--structured|-s]<jar-file>: Path to the JAR file to analyze (required). Use '-' for stdin.--json: Output manifest attributes as JSON.--yaml: Output manifest attributes as YAML.--structured,-s: Parse known attributes (e.g., Import-Package, Export-Package) into structured data (lists/maps).
- Reads the
META-INF/MANIFEST.MFfrom the specified JAR file. - By default, prints manifest attributes as manifest.mf.
- Supports machine-readable output with
--jsonor--yaml. - Structured parsing of known attributes with
--structured. - Returns a nonzero exit code if the manifest is missing or the JAR cannot be read.
mf mylib.jar
mf mylib.jar --json
mf `jbang info jar org.junit.jupiter:junit-jupiter:5.10.0` --yaml--structuredjbang mf@jbangdev
Format Java code (without messing up JBang directives).
jbang jbang-fmt@jbangdev
jbang jbang-jupyter@jbangdev
jbang trylink@jbangdev
Simple cli to querying github
jbang init -t github@jbangdev
Simple cli to querying github
jbang init -t qmcp@jbangdev
Initializes a bare-bone jitpack.yml to enable publishing a jbang script as a maven artifact via jitpack.
Example: jbang init -t jitpack@jbangdev myapp.java and then commit this to github and visit jitpack.io to trigger its build.
jbang init -t jitpack@jbangdev
Initializes a renovate.json to enable automatic management of any .java file //DEPS section.
Example: jbang init -t renovate@jbangdev .github/renovate.json and then commit this to github and if you installed https://github.com/apps/renovate renovate will make issues and PR's for dependency updates.
jbang init -t renovate@jbangdev
Basic template for JUnit tests
jbang init -t junit@jbangdev