Documentation menu

jdx manifest

IDE equivalent: META-INF/MANIFEST.MF attributes (--entries for JarEntry)

List META-INF/MANIFEST.MF attributes across the workspace's binary roots. Default: main-section attributes. --entries lists per-entry (JarEntry) attributes instead. With no pattern, every attribute in that section is shown; with a pattern, match the attribute name or value (and entry path under --entries). --regex treats the pattern as a Java regex; --ignore-case folds substring matches. --in/--exclude filter by artifact label; --limit caps attribute rows (default 50). Exits 1 when nothing matches.

Usage#

jdx manifest [<options>] [<pattern>]

Example#

jdx manifest Multi-Release --coord com.google.code.gson:gson:2.14.0 --no-jdk
manifests matching 'Multi-Release'
gson-2.14.0.jar (1)
  Multi-Release: true

Real output — this example ran against the current jdx when the page was built.

Options#

OptionDescription
--entriesList per-entry (JarEntry) attributes instead of main-section attributes.
--regexTreat the pattern as a Java regex matched against each attribute name/value (and entry path under --entries).
--ignore-caseCase-insensitive substring match (ignored under --regex; use (?i) there).
--in=<text>Only artifacts whose label matches this glob (jar file name, JDK module or class-dir name).
--exclude=<text>Skip artifacts whose label matches this glob.
--limit=<int>Maximum attribute rows shown (default 50); the rest become a truncation footer.
--jars=<text>Binary roots: jar files, class directories or globs (repeatable). Merge in front of the selected workspace's roots.
-w, --workspace=<text>Use a named workspace (see jdx ws). Explicit --jars merge in front of it.
--no-jdkDo not include the running JDK's stdlib (included by default).
--release, --multi-release=<int>Multi-release jar feature to serve, matching javap --multi-release. The highest META-INF/versions/N at or below N wins; 8 selects base entries only. Omitted, the running JDK feature is used. Values below 8 are a usage error. An explicit value stays in-process; the warm daemon keeps the running JDK.
--coord=<text>Maven coordinate root group:artifact:version (repeatable). Resolved from ~/.gradle/caches and ~/.m2 first; with --fetch, downloaded from Maven repositories into <cache-dir>/m2 with checksum verification. Merges in front of the workspace.
--repo=<text>Maven repository base URL for --coord fetches (repeatable, e.g. --repo https://repo.example.com/maven2). Tried in flag order before Maven Central, which stays last as the fallback. Must be an http(s) URL.
--fetchAllow downloading --coord artifacts (and their -sources.jar) from Maven repositories (Central by default, --repo to add mirrors). Without it, coordinates resolve from the local caches only.
--jsonEmit machine-readable JSON instead of human-readable text (same information, D-007).
--no-colorDisable ANSI colors even on a TTY (piped output is always plain).
--no-daemonForce in-process execution: do not forward this query to the background daemon even when its socket answers (PROPOSAL.md §14.1).
-h, --helpShow this message and exit

Arguments#

ArgumentDescription
<pattern>Optional substring (or --regex pattern) matched against attribute names and values (and entry paths under --entries). Omit to list every attribute in the selected section.

Full help text#

Show jdx manifest --help
jdx manifest --help
Usage: jdx manifest [<options>] [<pattern>]

  List META-INF/MANIFEST.MF attributes across the workspace's binary roots. Default: main-section attributes. --entries lists per-entry (JarEntry) attributes instead. With no pattern, every attribute in that section is shown; with a pattern, match the attribute name or value (and entry path under --entries). --regex treats the pattern as a Java regex; --ignore-case folds substring matches. --in/--exclude filter by artifact label; --limit caps attribute rows (default 50). Exits 1 when nothing matches.

Options:
  --entries                         List per-entry (JarEntry) attributes instead of main-section attributes.
  --regex                           Treat the pattern as a Java regex matched against each attribute name/value (and entry path under --entries).
  --ignore-case                     Case-insensitive substring match (ignored under --regex; use (?i) there).
  --in=<text>                       Only artifacts whose label matches this glob (jar file name, JDK module or class-dir name).
  --exclude=<text>                  Skip artifacts whose label matches this glob.
  --limit=<int>                     Maximum attribute rows shown (default 50); the rest become a truncation footer.
  --jars=<text>                     Binary roots: jar files, class directories or globs (repeatable). Merge in front of the selected workspace's roots.
  -w, --workspace=<text>            Use a named workspace (see jdx ws). Explicit --jars merge in front of it.
  --no-jdk                          Do not include the running JDK's stdlib (included by default).
  --release, --multi-release=<int>  Multi-release jar feature to serve, matching javap --multi-release. The highest META-INF/versions/N at or below N wins; 8 selects base entries only. Omitted, the running JDK feature is used. Values below 8 are a usage error. An explicit value stays in-process; the warm daemon keeps the running JDK.
  --coord=<text>                    Maven coordinate root group:artifact:version (repeatable). Resolved from ~/.gradle/caches and ~/.m2 first; with --fetch, downloaded from Maven repositories into <cache-dir>/m2 with checksum verification. Merges in front of the workspace.
  --repo=<text>                     Maven repository base URL for --coord fetches (repeatable, e.g. --repo https://repo.example.com/maven2). Tried in flag order before Maven Central, which stays last as the fallback. Must be an http(s) URL.
  --fetch                           Allow downloading --coord artifacts (and their -sources.jar) from Maven repositories (Central by default, --repo to add mirrors). Without it, coordinates resolve from the local caches only.
  --json                            Emit machine-readable JSON instead of human-readable text (same information, D-007).
  --no-color                        Disable ANSI colors even on a TTY (piped output is always plain).
  --no-daemon                       Force in-process execution: do not forward this query to the background daemon even when its socket answers (PROPOSAL.md §14.1).
  -h, --help                        Show this message and exit

Arguments:
  <pattern>  Optional substring (or --regex pattern) matched against attribute names and values (and entry paths under --entries). Omit to list every attribute in the selected section.

Real output — this example ran against the current jdx when the page was built.

Learn more#

Guide: Usages, hierarchy & calls · All commands

View as Markdown · Updated