---
title: jbx command reference
description: Reference for every jbx command, with examples, arguments, JSON notes, and schemas.
---

# Commands

Start here when you know the task but not the exact command. Pick a command from the list or search the command menu.

- [`run`](/docs/commands/run/) — Run Java source or Maven artifact
- [`build`](/docs/commands/build/) — Compile Java source without running it
- [`check`](/docs/commands/check/) — Diagnose the Java source file for errors
- [`test`](/docs/commands/test/) — Run JUnit tests
- [`docs`](/docs/commands/docs/) — Display documentation from Java sources or Maven artifacts.
- [`doctor`](/docs/commands/doctor/) — Verify local jbx installation
- [`rewrite`](/docs/commands/rewrite/) — Discover OpenRewrite modules and recipes and preview or apply them
- [`search`](/docs/commands/search/) — Search Maven Central artifacts
- [`resolve`](/docs/commands/resolve/) — Resolve Maven coordinates
- [`fetch`](/docs/commands/fetch/) — Download artifacts and print classpath or dependency coordinates.
- [`info`](/docs/commands/info/) — Print parsed directives and derived metadata from Java sources.
- [`cache`](/docs/commands/cache/) — Inspect or clear compiled-script cache paths and entries.
- [`trust`](/docs/commands/trust/) — Pin, list, remove, or clear trusted hashes for remote scripts.
- [`app`](/docs/commands/app/) — Install, list, or uninstall Java scripts as PATH commands.
- [`alias`](/docs/commands/alias/) — Add, remove, and list aliases from nearby jbang-catalog.json files.
- [`catalog`](/docs/commands/catalog/) — Add and list external catalogs in jbang-catalog.json.
- [`template`](/docs/commands/template/) — List built-in and imported templates for jbx init.
- [`init`](/docs/commands/init/) — Create Java sources from built-in or imported templates.
- [`export`](/docs/commands/export/) — Export local, portable, or native runnable artifacts.
- [`publish`](/docs/commands/publish/) — Publish Java projects to Maven repositories, including Maven Central.
- [`install`](/docs/commands/install/) — Install the current project into a Maven repository layout.
- [`fmt`](/docs/commands/fmt/) — Format Java files with Palantir Java Format.
- [`graph`](/docs/commands/graph/) — Dump JavaParser native AST JSON or import it back to Java source.
- [`skill`](/docs/commands/skill/) — List and print version-matched bundled agent skills.
- [`jdk`](/docs/commands/jdk/) — List, install, and locate JDKs used by jbx.
