# 使用 Homebrew, MacPorts, Nix, scoop 安装 bit

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

## 安装

```sh
sudo av install brew:bit
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install bit
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install bit
```

  证据: MacPorts ports tree: devel/bit/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#bit
```

  证据: nixpkgs package indexes: pkgs/by-name/bi/bit/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

### Windows

- Scoop (92%):

```sh
scoop install main/bit
```

  证据: Scoop official bucket manifest trees: bucket/bit.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:bit
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/bit>
- **版本:** 14.8.8
- **来源摘要:** Distributed Code Component Manager
- **主页:** <https://bit.dev>
- **仓库:** <https://github.com/teambit/bit>
- **上游文档:** <https://bit.dev/docs>
- **许可证:** Apache-2.0
- **源码归档:** <https://registry.npmjs.org/bit-bin/-/bit-bin-14.8.8.tgz>
- **最后更新:** 2026-06-22T14:02:53-07:00
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- bit (cli)
- bit (别名)

## 依赖

- node
- terminal-notifier

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 14.8.8
- 管理器更新时间: 2026-06-22
- 本地数据: OK
- 上游仓库: https://bit.dev
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

Bit is Teambit's component-oriented development platform and CLI. It started as a way to manage and share code components across repositories, and its current documentation frames it as a build system for composing components, applications, and AI-assisted development workspaces.

### 项目历史

The official teambit/bit repository was created in 2017. Its README describes Bit as a system for organizing source code into reusable components, with support for common JavaScript and TypeScript environments such as Node.js, React, Angular, Vue, React Native, and Next.js.

Over time Bit expanded from a distributed component manager into a broader workspace, build, release, and cloud collaboration system. The current README emphasizes composable components, shell applications, CI, Bit Cloud scopes, and reusable templates for both developers and AI agents.

### 采用历史

Bit's adoption has been strongest in JavaScript and TypeScript component ecosystems, especially teams trying to share UI or backend modules across monorepos and polyrepos. Its package-manager presence in Homebrew, MacPorts, Nix, and Scoop reflects a cross-platform CLI distribution strategy rather than a Unix-only tool.

The project remains actively maintained: the GitHub repository shows continued activity in 2026 and release tags in the 1.13 series. The README also points users to Bit Cloud and a community space, which are central to the hosted-scope workflow.

### 使用方式

Typical usage starts with installing Bit, running `bit init --default-scope`, creating components or applications with `bit create`, previewing them with the Bit UI or `bit run`, versioning them with `bit tag`, and exporting them with `bit export`.

Bit is most useful when a team wants code units to have their own build, test, version, dependency, and release lifecycle while still living inside existing repositories or workspaces.

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

For package nerds, Bit is interesting because it blurs the line between package manager, monorepo tool, component registry, and build orchestrator. It treats components as first-class packageable units instead of making the repository the only meaningful boundary.

It also explains the Homebrew naming collision with `bit-git`: the simple `bit` formula belongs to Teambit's component workflow, while the modern Git helper is packaged as `bit-git`.

### 时间线

- 2017: The teambit/bit repository is created.
- Late 2010s: Bit is presented as a distributed code component manager for sharing components across projects.
- 2020s: Bit grows into a component workspace and build system tied to Bit Cloud scopes and JavaScript/TypeScript environments.
- 2026: The project continues publishing 1.13.x releases and active repository updates.

### Related projects

- Bit Cloud is the hosted scope and collaboration platform documented by the project.
- npm and standard JavaScript package managers consume exported Bit components as packages.
- Nx, Turborepo, and Lerna occupy adjacent monorepo and workspace-tooling territory, though Bit's component model is distinct.
- React, Angular, Vue, Node.js, React Native, and Next.js are official environment targets named in the README.

### 来源

- <https://api.github.com/repos/teambit/bit>
- <https://api.github.com/repos/teambit/bit/releases>
- <https://bit.dev/docs>
- <https://github.com/teambit/bit>
- <https://raw.githubusercontent.com/teambit/bit/master/README.md>
- input.json source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## 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

- macOS: ~/Library/Caches/Bit/config/config.json
- Unix: ./workspace.jsonc

## Credential files

- macOS: ~/Library/Caches/Bit/config/config.json, ~/.ssh/id_rsa
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** bit
- **Version Scheme:** 0
- **Revision:** 1
- **Head Version:** HEAD
- **Conflicts With:** bit-git
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 其他软件包管理器记录

- Nix - bit: normalized package name match | nixpkgs package indexes: pkgs/by-name/bi/bit/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - bit: normalized package name match | MacPorts ports tree: devel/bit/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/bit: normalized package name match | Scoop official bucket manifest trees: bucket/bit.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## 相关链接

- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [node](https://www.automicvault.com/zh-hans/pkg/brew/node/) - Runtime dependency declared by Homebrew.
- [terminal-notifier](https://www.automicvault.com/zh-hans/pkg/brew/terminal-notifier/) - Runtime dependency declared by Homebrew.
- [bumpp](https://www.automicvault.com/zh-hans/pkg/brew/bumpp/) - Shares av.db curated category or tags: cli, developer-tools, monorepo, typescript.
- [lerna](https://www.automicvault.com/zh-hans/pkg/brew/lerna/) - Shares av.db curated category or tags: cli, developer-tools, monorepo, typescript.
- [nx](https://www.automicvault.com/zh-hans/pkg/brew/nx/) - Shares av.db curated category or tags: cli, developer-tools, monorepo, typescript.
- [sherif](https://www.automicvault.com/zh-hans/pkg/brew/sherif/) - Shares av.db curated category or tags: cli, developer-tools, monorepo, typescript.
- [bash-language-server](https://www.automicvault.com/zh-hans/pkg/brew/bash-language-server/) - Shares av.db curated category or tags: cli, developer-tools, typescript.
- [changelogen](https://www.automicvault.com/zh-hans/pkg/brew/changelogen/) - Shares av.db curated category or tags: cli, developer-tools, typescript.
- [claude-hooks](https://www.automicvault.com/zh-hans/pkg/brew/claude-hooks/) - Shares av.db curated category or tags: cli, developer-tools, typescript.
- [dockerfile-language-server](https://www.automicvault.com/zh-hans/pkg/brew/dockerfile-language-server/) - Shares av.db curated category or tags: cli, developer-tools, typescript.
- [jsrepo](https://www.automicvault.com/zh-hans/pkg/brew/jsrepo/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, code, components, developer, developer-tools.

## Combined YAML source

View the package source record on GitHub. [combined/bit.yml](https://github.com/automic-vault/db/blob/main/combined/bit.yml)


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
