# 使用 Homebrew, winget 安装 aptos

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

## 安装

```sh
sudo av install brew:aptos
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install aptos
```

  证据: local Homebrew formula metadata

### Windows

- winget (92%):

```sh
winget install --id AptosCore.aptos -e
```

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

## 软件包事实

- **软件包键:** brew:aptos
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/aptos>
- **版本:** 9.5.0
- **来源摘要:** Layer 1 blockchain built to support fair access to decentralized assets for all
- **主页:** <https://aptosfoundation.org/>
- **仓库:** <https://github.com/aptos-labs/aptos-core>
- **上游文档:** <https://aptos.dev/build/cli>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/aptos-labs/aptos-core/archive/refs/tags/aptos-cli-v9.5.0.tar.gz>
- **最后更新:** 2026-07-14T11:43:38Z
- **已生成:** 2026-07-25T07:20:51+00:00

## 可执行文件

- aptos (cli)
- aptos (别名)

## 构建依赖

- cmake
- rust

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-25
- 管理器版本: 9.5.0
- 管理器更新时间: 2026-07-14
- 本地数据: OK
- 上游仓库: https://github.com/aptos-labs/aptos-core
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

Aptos CLI is the command-line front end for the Aptos blockchain toolchain. In package-manager terms it is the small executable that turns the much larger aptos-core monorepo into something developers can install, initialize, and use from a shell.

### 项目历史

The official aptos-core repository was created in February 2022 and describes Aptos as a layer 1 blockchain focused on broad blockchain use, better technology, and user experience. The Homebrew package exposes the `aptos` executable from that repository rather than a separate standalone CLI project.

Aptos documentation treats the CLI as the normal entry point for local developer work: users install it, initialize profiles, select network endpoints, generate or enter a private key, and then run account and Move-package workflows from the terminal.

### 采用历史

The CLI appears in Homebrew and winget package metadata, matching Aptos' cross-platform developer audience. The aptos-core repository is active and high-visibility, with thousands of stars and forks in the official GitHub API metadata.

Official release notes continue to mention CLI releases alongside node and framework changes, which is typical for chain toolchains where package users track both client compatibility and protocol cadence.

### 使用方式

Typical use starts with `aptos init`, which writes a profile containing REST and faucet endpoints plus account key material. Named profiles let developers switch accounts and networks while reusing the same `aptos` binary for Move package publishing, account funding, and transaction workflows.

For package users, the important behavior is that local workspace configuration is discovered at `.aptos/config.yaml`, while a shared configuration can live at `~/.aptos/global_config.yaml`.

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

Aptos CLI is a good example of a blockchain package where the executable, protocol implementation, SDK surface, and release engineering all live in one large monorepo. Packagers care about it because a CLI version is not just a convenience binary; it also encodes current Move tooling, network defaults, and compatibility expectations.

### 时间线

- 2022: The official aptos-core repository was created.
- 2022: Homebrew and other package metadata began distributing the `aptos` executable for developer workflows.
- 2026: Aptos node release notes still include explicit Aptos CLI release work, showing the CLI remains part of the main release train.

### Related projects

- Related official surfaces include aptos-core, the Aptos developer documentation, Move tooling, and Aptos network APIs.

### 来源

- <https://api.github.com/repos/aptos-labs/aptos-core>
- <https://api.github.com/repos/aptos-labs/aptos-core/releases>
- <https://aptos.dev/build/cli>
- <https://aptos.dev/build/cli/setup-cli>
- 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

- Unix: .aptos/config.yaml, ~/.aptos/global_config.yaml

## Credential files

- Unix: .aptos/config.yaml, ~/.aptos/global_config.yaml
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** aptos
- **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 - AptosCore.aptos: normalized package name match | Windows Package Manager source index: AptosCore.aptos from https://cdn.winget.microsoft.com/cache/source.msix


## 相关链接

- [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.
- [cmake](https://www.automicvault.com/zh-hans/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [rust](https://www.automicvault.com/zh-hans/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [anchor](https://www.automicvault.com/zh-hans/pkg/brew/anchor/) - Shares av.db curated category or tags: blockchain, cli, developer-tools, smart-contracts.
- [clarinet](https://www.automicvault.com/zh-hans/pkg/brew/clarinet/) - Shares av.db curated category or tags: blockchain, cli, developer-tools, smart-contracts.
- [near](https://www.automicvault.com/zh-hans/pkg/brew/near/) - Shares av.db curated category or tags: blockchain, cli, developer-tools, smart-contracts.
- [stellar-cli](https://www.automicvault.com/zh-hans/pkg/brew/stellar-cli/) - Shares av.db curated category or tags: blockchain, cli, developer-tools, smart-contracts.
- [sui](https://www.automicvault.com/zh-hans/pkg/brew/sui/) - Shares av.db curated category or tags: blockchain, cli, developer-tools, smart-contracts.
- [aiken](https://www.automicvault.com/zh-hans/pkg/brew/aiken/) - Shares av.db curated category or tags: cli, developer-tools, smart-contracts.
- [bittensor](https://www.automicvault.com/zh-hans/pkg/brew/bittensor/) - Shares av.db curated category or tags: blockchain, cli, developer-tools.
- [chainhook](https://www.automicvault.com/zh-hans/pkg/brew/chainhook/) - Shares av.db curated category or tags: blockchain, cli, developer-tools.

## Combined YAML source

View the package source record on GitHub. [combined/aptos.yml](https://github.com/automic-vault/db/blob/main/combined/aptos.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
