# zx を Homebrew, apt, Nix でインストール

zx のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:zx
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install zx
```

  証拠: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install zx
```

  証拠: Debian stable package indexes: zx from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#zx
```

  証拠: nixpkgs package indexes: pkgs/by-name/zx/zx/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## パッケージ情報

- **パッケージキー:** brew:zx
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/zx>
- **バージョン:** 8.8.5
- **ソース概要:** Tool for writing better scripts
- **ホームページ:** <https://google.github.io/zx/>
- **上流ドキュメント:** <https://google.github.io/zx/>
- **ライセンス:** Apache-2.0
- **ソースアーカイブ:** <https://registry.npmjs.org/zx/-/zx-8.8.5.tgz>
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- zx (cli)
- zx (エイリアス)

## 依存関係

- node

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 all

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 8.8.5
- ローカルデータ: OK
- 上流リポジトリ: https://google.github.io/zx/
- 情報: No package-manager update timestamp was available.
- 情報: Release/tag comparison is only available for GitHub repositories.
## プロジェクトの歴史と使われ方

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.

### ソース

- <https://github.com/google/zx>
- <https://google.github.io/zx/cli>
- <https://google.github.io/zx/getting-started>
- <https://raw.githubusercontent.com/google/zx/main/package.json>


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals

## ソースデータベース詳細

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** zx
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## 他のパッケージマネージャ記録

- Debian apt - zx - 7.1.1+~cs6.7.23-3: normalized package name match | Debian stable package indexes: zx from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | tool to launch modern Javascript scripts | https://github.com/google/zx#readme
- Nix - zx: normalized package name match | nixpkgs package indexes: pkgs/by-name/zx/zx/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - zx - 7.1.1+~cs6.7.23-3: normalized package name match | Ubuntu 24.04 LTS package indexes: zx from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | tool to launch modern Javascript scripts | https://github.com/google/zx#readme


## 関連リンク

- [Source-control packages](https://pkg.so/ja/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/ja/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/ja/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [node](https://pkg.so/ja/brew/node/) - Runtime dependency declared by Homebrew.
- [pnpm](https://pkg.so/ja/brew/pnpm/) - Shares pkgdb curated category or tags: cli, developer-tools, javascript, nodejs.
- [shellcheck](https://pkg.so/ja/brew/shellcheck/) - Shares pkgdb curated category or tags: bash, cli, developer-tools, shell.
- [fish](https://pkg.so/ja/brew/fish/) - Shares pkgdb curated category or tags: cli, developer-tools, scripting, shell.
- [zsh](https://pkg.so/ja/brew/zsh/) - Shares pkgdb curated category or tags: cli, developer-tools, scripting, shell.
- [mongosh](https://pkg.so/ja/brew/mongosh/) - Shares pkgdb curated category or tags: cli, developer-tools, javascript, shell.
- [yarn](https://pkg.so/ja/brew/yarn/) - Shares pkgdb curated category or tags: cli, developer-tools, javascript, nodejs.
- [shfmt](https://pkg.so/ja/brew/shfmt/) - Shares pkgdb curated category or tags: bash, cli, developer-tools, shell.
- [fnm](https://pkg.so/ja/brew/fnm/) - Shares pkgdb curated category or tags: cli, developer-tools, javascript, nodejs.
- [zx](https://pkg.so/ja/npm/zx/) - Same normalized package name appears in another local ecosystem. Shared terms: bash, better, cli, developer, developer-tools.
- [bash-language-server](https://pkg.so/ja/brew/bash-language-server/) - Both packages touch the same language runtime or ecosystem. Shared terms: bash, cli, developer, developer-tools, node.
- [chalk-cli](https://pkg.so/ja/brew/chalk-cli/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, javascript, node.
- [zx](https://pkg.so/ja/npm/zx/) - Same normalized package name in another local ecosystem.

## Combined YAML source

View the package source record on GitHub. [combined/zx.yml](https://github.com/mxcl/pkgdb/blob/main/combined/zx.yml)


## ソース

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