# 使用 Homebrew, winget 安装 clarinet

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

## 安装

```sh
sudo av install brew:clarinet
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install clarinet
```

  证据: local Homebrew formula metadata

### Windows

- winget (92%):

```sh
winget install --id HiroSystems.Clarinet -e
```

  证据: Windows Package Manager source index: HiroSystems.Clarinet from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:clarinet
- **软件包管理器:** Homebrew
- **版本:** 3.23.1
- **来源摘要:** Command-line tool and runtime for the Clarity smart contract language
- **主页:** <https://stackslabs.com/>
- **仓库:** <https://github.com/stx-labs/clarinet>
- **最后更新:** 2026-07-31T21:28:45Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- clarinet (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 3.23.1
## 项目历史与用法

Clarinet is the Stacks ecosystem's command-line development framework and Clarity runtime for writing, testing, debugging, and deploying Stacks smart contracts.

### 项目历史

The public repository was created in 2020. Official Stacks documentation describes Clarinet as a development framework and Clarity runtime packaged as a command-line tool for smart contract understanding, development, testing, and deployment.

The project expanded from a CLI into a suite that includes local devnet support, an interactive REPL, a JavaScript SDK/testing framework, and VS Code integration. By June 2026, GitHub releases had reached v3.21.0.

### 采用历史

Official installation docs list Homebrew, winget, source builds, and binary releases. The README also badges an npm package for @stacks/clarinet-sdk and an Open VSX extension, showing adoption beyond the standalone CLI.

Homebrew reported 988 installs over the prior 365 days for clarinet, and the input metadata also lists winget packaging as HiroSystems.Clarinet.

### 使用方式

Clarinet is used to create projects, add contracts, check syntax and types, run a console REPL, launch a local devnet, manage deployments, and write unit tests with the Clarinet SDK.

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

Clarinet is a useful package-manager case because a blockchain developer workflow is distributed through multiple channels: Homebrew for Unix-like CLI installs, winget and binary archives for direct installs, npm for the SDK, and editor marketplaces for the VS Code integration.

### 时间线

- 2020: GitHub repository created.
- 2026: v3.18.0 through v3.21.0 releases published in May and June.
- 2026: Homebrew formula metadata lists v3.21.0 as the stable version.
- 2026: Official docs list Homebrew, winget, source, and binary installation paths.

### Related projects

- Clarinet is tied to the Clarity smart contract language and the Stacks blockchain.
- The official docs point to LabSTX as a browser-based alternative and document Clarinet's SDK and VS Code extension as companion projects.

### 来源

- <https://github.com/stx-labs/clarinet#readme>
- <https://docs.stacks.co/clarinet/overview.md>
- <https://docs.stacks.co/reference/clarinet/cli-reference.md>
- <https://api.github.com/repos/stx-labs/clarinet>
- <https://api.github.com/repos/stx-labs/clarinet/releases>
- <https://formulae.brew.sh/api/formula/clarinet.json>


## 安全说明

generalized runtime or code generation signal.

- **Geiger 风险:** yellow / 中
- generalized runtime or code generation signal


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

- Unix: ./Clarinet.toml, ./settings/Devnet.toml, ./settings/Testnet.toml, ./settings/Mainnet.toml
## 其他软件包管理器记录

- winget - HiroSystems.Clarinet: normalized package name match | Windows Package Manager source index: HiroSystems.Clarinet from https://cdn.winget.microsoft.com/cache/source.msix
- winget - StacksLabs.Clarinet: normalized package name match | Windows Package Manager source index: StacksLabs.Clarinet from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

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


## 来源

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