pkg.soopen package index

brew / 排名 2529

使用 Homebrew, chocolatey, Nix, scoop 安装 jbang

查看 jbang 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install jbang

local Homebrew formula metadata

Linux

Nix已验证 · 92%
nix profile install nixpkgs#jbang

nixpkgs package indexes · pkgs/by-name/jb/jbang/package.nix · 来源: api.github.com

Windows

Chocolatey已验证 · 92%
choco install jbang

Chocolatey community package catalog · jbang · 来源: community.chocolatey.org

Scoop已验证 · 92%
scoop install main/jbang

Scoop official bucket manifest trees · bucket/jbang.json · 来源: api.github.com

概览

软件包摘要

Tool to create, edit and run self-contained source-only Java programs

命令和别名

  • jbang

历史

项目历史与用法

JBang is a command-line tool for writing, running, editing, sharing, and installing source-only Java programs without creating a traditional Maven or Gradle project first. It brings shebang-style scripting, dependency directives, catalog aliases, and IDE integration to Java.

项目历史

The JBang FAQ says Max Rydahl Andersen came to the idea while exploring Java 10 shebang support and the Kotlin kscript project, asking why the same style could not be done with Java. The FAQ says JBang was released in December 2019.

The repository README frames JBang as a way to run .java files directly, declare Maven dependencies with //DEPS, work with Java, Kotlin, Groovy, JShell, and Markdown, open scripts in IDEs, build native binaries with GraalVM, and share scripts through GitHub URLs, aliases, and catalogs.

采用历史

JBang spread through Java developer tooling channels rather than through one application framework: the official README lists SDKMAN, Homebrew, Chocolatey, and Scoop installs, and the FAQ links to talks, articles, podcasts, and Quarkus-related presentations. The package metadata in the input also shows Homebrew, Chocolatey, Nix, and Scoop coverage.

使用方式

A common JBang script starts with a comment-form shebang line, uses directives such as //DEPS and //JAVA, and runs with the jbang command. Users can also initialize templates, edit generated IDE projects, install commands as apps, run remote scripts, manage aliases and catalogs, and export scripts toward richer project or native-image forms.

为什么软件包爱好者会关心

JBang is package-nerd significant because it treats Maven Central as a scripting package universe. It reduces the gap between one-file scripts and full JVM applications, giving Java a workflow closer to Python, shell, or Node command snippets while keeping Java libraries, IDEs, and GraalVM in play.

时间线

  • 2019: JBang is released in December, according to the FAQ.
  • 2021: JBang documentation is built with Antora and published under jbang.dev.
  • 2020s: JBang adds catalog aliases, app installation, IDE integration, multiple source languages, and native-image workflows.
  • 2026: The repository release notes document a CLI parser migration from picocli to Aesh and early-access native binary distribution work.

Related projects

  • JBang is related to Java 10 single-file source execution, kscript, Maven Central, SDKMAN, Chocolatey, Scoop, GraalVM native-image, Quarkus command-line workflows, JShell, Groovy, Kotlin, and Java build tools such as Maven and Gradle.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • 未记录 Homebrew bottle 元数据。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Unix
~/.jbang/jbang-catalog.json.jbang/jbang-catalog.json

可执行文件

已安装的可执行文件

命令类型暴露范围备注
jbang可执行文件已索引可执行文件从本地可执行文件索引发现。

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-08-03
管理器版本0.141.0
管理器更新时间2026-07-14
本地数据未知
上游不可用
检测到的最新版本未检测到
  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:jbang
版本0.141.0
软件包管理器Homebrew
主页https://jbang.dev/
仓库https://github.com/jbangdev/jbang
最后更新2026-07-14T06:33:35Z
Pulseupdated
Bottle未记录
服务未声明

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

jbang

nix profile install nixpkgs#jbang
  • normalized package name match
  • 匹配方式:Jbang
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/jb/jbang/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Chocolatey95%

jbang

choco install jbang
  • normalized package name match
  • 匹配方式:Jbang
Chocolatey community package catalog · community.chocolatey.org · Chocolatey community package catalog: jbang from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','java7u13x86'
Scoop95%

main/jbang

scoop install main/jbang
  • normalized package name match
  • 匹配方式:Jbang
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/jbang.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • pkg.so package database
  • pkgdb category and tag curation