pkg.soopen package index

brew / 排名 3129

使用 Homebrew, apt, Nix 安装 zx

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install zx

local Homebrew formula metadata

Linux

Debian apt已验证 · 92%
sudo apt install zx

Debian stable package indexes · zx · 来源: deb.debian.org

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

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

概览

软件包摘要

Tool for writing better scripts

命令和别名

  • zx

历史

项目历史与用法

zx is Google's JavaScript shell-scripting tool, created to make operational scripts feel like shell while giving authors modern JavaScript, promises, package imports, and safer command interpolation.

项目历史

The google/zx repository began in May 2021, with Anton Medvedev listed as package author. Its core idea is the `$` tagged template: commands look shell-like, but arguments are escaped and execution is wrapped in a ProcessPromise API rather than raw child_process boilerplate.

The project evolved from a Node-oriented helper into a broader runtime tool. The README now documents Linux, macOS, and Windows support plus Node, Bun, Deno, and GraalVM compatibility; later documentation added TypeScript, markdown scripts, remote scripts, dependency auto-installation, and a lighter zx@lite entry point.

采用历史

zx spread quickly because it hit a common pain point for JavaScript-heavy teams: build, release, migration, and glue scripts often outgrow bash, but plain Node scripts are verbose for process execution. Its GitHub repository has tens of thousands of stars, and the package became recognizable enough to be installed both from JavaScript tooling and system package managers.

The adoption pattern is strongest around project-local automation rather than end-user CLI apps. Teams use zx when they want scripts to live beside package.json, call existing Unix tools, await concurrent commands, and reuse npm libraries without switching to a task runner framework.

使用方式

A zx script is commonly run with `zx script.mjs`, `npx zx`, a shebang using `/usr/bin/env zx`, or a package.json script. The CLI can execute ordinary files, extensionless scripts, markdown code blocks, stdin, eval snippets, and remote URLs, while flags control shell choice, verbosity, local dependency preference, and on-demand package installation.

In practice zx is used for release scripts, deployment wrappers, repository maintenance, monorepo chores, code-generation glue, CI helpers, and one-off administrative scripts where the author wants shell commands plus JavaScript data handling.

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

zx is package-nerd significant because it blurred the line between a language package and a system scripting tool. It made `npm install zx` feel like installing a better shell harness, and it became a reference point for the idea that developer automation can be distributed as a normal package while still acting like a Unix command.

时间线

  • 2021-05: google/zx public git history starts.
  • 2021-05: Early 1.x releases establish the `$` template shell API.
  • 2022-03: 6.0.0 release era adds broader CLI packaging and workflow polish.
  • 2024-04: 8.0.0 release era continues the modern runtime and TypeScript-focused evolution.
  • 2025-10: GitHub lists 8.8.5 as a recent release, with ongoing maintenance.

Related projects

  • Node.js child_process: the standard library surface zx wraps for scripts.
  • Bash and PowerShell: the shells zx invokes rather than fully replacing.
  • Bun and Deno: alternative JavaScript runtimes supported by current zx documentation.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 1 个平台目标。
  • 安装时包含 1 个运行时依赖。

建议审查

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

可执行文件

已安装的可执行文件

命令类型暴露范围备注
zxcli全局可执行文件

新鲜度

版本和新鲜度

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

页面生成时间2026-08-04
管理器版本8.8.5
管理器更新时间
本地数据OK
上游not checked
检测到的最新版本未检测到

https://google.github.io/zx/

  • 信息No package-manager update timestamp was available.低 置信度
  • 信息Release/tag comparison is only available for GitHub repositories.https://google.github.io/zx/none 置信度

安装元数据

软件包元数据

软件包键brew:zx
版本8.8.5
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/zx
主页https://google.github.io/zx/
上游文档https://google.github.io/zx/
许可证Apache-2.0
源码归档https://registry.npmjs.org/zx/-/zx-8.8.5.tgz
依赖node
Bottle可用 (于 all)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namezx
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

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

Debian apt95%

zx 7.1.1+~cs6.7.23-3

tool to launch modern Javascript scripts

https://github.com/google/zx#readme

sudo apt install zx
  • Section: javascript
  • Architecture: all
  • Source Package: node-zx
  • 11 依赖
  • 8 提供
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Zx
Debian stable package indexes · deb.debian.org · Debian stable package indexes: zx from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

zx

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

zx 7.1.1+~cs6.7.23-3

tool to launch modern Javascript scripts

https://github.com/google/zx#readme

sudo apt install zx
  • Section: universe/javascript
  • Architecture: all
  • Source Package: node-zx
  • 11 依赖
  • 8 提供
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Zx
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: zx from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz

来源线索

由仓库数据生成

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

Combined YAML source

View the package source record on GitHub.

combined/zx.yml

使用的来源

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment
  • pkg.so package database
  • pkgdb category and tag curation