# 使用 Homebrew, winget 安装 stellar-cli

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

## 安装

```sh
sudo av install brew:stellar-cli
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install stellar-cli
```

  证据: local Homebrew formula metadata

### Windows

- winget (92%):

```sh
winget install --id Stellar.StellarCLI -e
```

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

## 软件包事实

- **软件包键:** brew:stellar-cli
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/stellar-cli>
- **版本:** 27.1.0
- **来源摘要:** Stellar command-line tool for interacting with the Stellar network
- **主页:** <https://developers.stellar.org>
- **仓库:** <https://github.com/stellar/stellar-cli>
- **上游文档:** <https://developers.stellar.org>
- **许可证:** Apache-2.0
- **源码归档:** <https://static.crates.io/crates/stellar-cli/stellar-cli-27.1.0.crate>
- **最后更新:** 2026-07-31T17:39:12Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- stellar (cli)
- stellar (别名)

## 依赖

- openssl@3

## 构建依赖

- pkgconf
- rust

## 安装行为

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

## 版本和新鲜度

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

Stellar CLI is the command-line tool for developers building on Stellar, especially for deploying and interacting with Stellar smart contracts. In package-manager culture it is the installable `stellar` binary that turns Stellar contract development into a local terminal workflow rather than only a web-console or SDK activity.

### 项目历史

The public GitHub repository was created in May 2022 and describes the project as a CLI for Stellar developers. Its README presents it as the command-line multi-tool for running and deploying Stellar contracts on the Stellar network, tying the tool to Stellar's Soroban-era smart-contract developer stack.

### 采用历史

Stellar smart contracts, formerly called Soroban, reached mainnet availability in March 2024 according to SDF's official announcement. That made the CLI more important as a packaged developer dependency because contract builders needed a repeatable way to create identities, configure networks, deploy contracts, and call them from scripts and CI.

### 使用方式

The official manual documents commands for keys, networks, contracts, ledgers, events, and other Stellar workflows. It also documents a shared configuration directory, defaulting to `$XDG_CONFIG_HOME/stellar` or `~/.config/stellar`, which stores configuration files, aliases, and persistent settings.

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

For package maintainers, Stellar CLI is the small binary surface area of a much larger blockchain toolchain: Rust, Wasm smart contracts, RPC endpoints, network passphrases, identities, and release compatibility all meet at one executable. Its presence in Homebrew and WinGet, recorded in the input package-manager facts, makes it a cross-platform CLI that developers can pin and upgrade outside language-specific package managers.

### 时间线

- 2022: Public GitHub repository created.
- 2022: Early v0 releases published on GitHub.
- 2024: Stellar smart contracts announced live on mainnet.
- 2026: GitHub releases continued through v27.0.0.

### Related projects

- The CLI is part of the broader Stellar developer stack alongside Stellar Core, the Stellar Rust XDR tooling, the Soroban SDK, and Stellar RPC services.

### 来源

- <https://api.github.com/repos/stellar/stellar-cli>
- <https://api.github.com/repos/stellar/stellar-cli/releases>
- <https://developers.stellar.org/docs/tools/cli/stellar-cli>
- <https://github.com/stellar/stellar-cli>
- <https://stellar.org/press/smart-contracts-launch-on-stellar>
- input.source_facts.package-manager


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool 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: $XDG_CONFIG_HOME/stellar, ~/.config/stellar

## Credential files

- Unix: $XDG_CONFIG_HOME/stellar, ~/.config/stellar
## 源数据库详情

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

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

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


## 相关链接

- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [openssl@3](https://pkg.so/zh-hans/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [rust](https://pkg.so/zh-hans/brew/rust/) - Build dependency declared by Homebrew.
- [stellar-core](https://pkg.so/zh-hans/brew/stellar-core/) - Package name indicates the same formula family.
- [stellar-xdr](https://pkg.so/zh-hans/brew/stellar-xdr/) - Shares the same upstream homepage.
- [sui](https://pkg.so/zh-hans/brew/sui/) - Shares pkgdb curated category or tags: blockchain, cli, developer-tools, smart-contracts.
- [aptos](https://pkg.so/zh-hans/brew/aptos/) - Shares pkgdb curated category or tags: blockchain, cli, developer-tools, smart-contracts.
- [clarinet](https://pkg.so/zh-hans/brew/clarinet/) - Shares pkgdb curated category or tags: blockchain, cli, developer-tools, smart-contracts.
- [anchor](https://pkg.so/zh-hans/brew/anchor/) - Shares pkgdb curated category or tags: blockchain, cli, developer-tools, smart-contracts.
- [near](https://pkg.so/zh-hans/brew/near/) - Shares pkgdb curated category or tags: blockchain, cli, developer-tools, smart-contracts.
- [solana](https://pkg.so/zh-hans/brew/solana/) - Shares pkgdb curated category or tags: blockchain, cli, developer-tools.
- [foundry](https://pkg.so/zh-hans/brew/foundry/) - Shares pkgdb curated category or tags: cli, developer-tools, smart-contracts.
- [ignite](https://pkg.so/zh-hans/brew/ignite/) - Shares pkgdb curated category or tags: blockchain, cli, developer-tools.

## Combined YAML source

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


## 来源

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