# 使用 Homebrew, winget 安装 astra

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

## 安装

```sh
sudo av install brew:astra
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install astra
```

  证据: local Homebrew formula metadata

### Windows

- winget (92%):

```sh
winget install --id Boof2015.Astra -e
```

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

## 软件包事实

- **软件包键:** brew:astra
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/astra>
- **版本:** 1.1.0
- **来源摘要:** Command-Line Interface for DataStax Astra
- **主页:** <https://docs.datastax.com/en/astra-cli>
- **仓库:** <https://github.com/datastax/astra-cli>
- **上游文档:** <https://docs.datastax.com/en/astra-cli>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/datastax/astra-cli/archive/refs/tags/v1.1.0.tar.gz>
- **最后更新:** 2026-07-08T11:57:43Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- astra (cli)
- astra (别名)

## 构建依赖

- graalvm
- gradle

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.1.0
- 管理器更新时间: 2026-07-08
- 本地数据: OK
- 上游仓库: https://github.com/datastax/astra-cli
- 检测到的最新版本: v1.1.0 (当前)
## 项目历史与用法

astra is the command-line interface for DataStax Astra. It gives developers terminal access to Astra database and platform operations, including authenticated commands, setup, configuration profiles, output formatting, upgrades, and environment-aware automation.

### 项目历史

The datastax/astra-cli repository was created in 2022. The current README describes the 1.0.0 beta generation of the CLI and points readers to the v0.x branch for the previous version, marking a significant rewrite or compatibility break in the tool's history.

The 1.x README emphasizes cross-platform Linux, macOS, and Windows support, official install scripts, Homebrew installation, direct releases, an astra upgrade command, and a more interactive terminal experience with colors, spinners, prompts, completions, stricter validation, and XDG-aware paths.

### 采用历史

Astra CLI adoption is tied to DataStax Astra itself rather than to a general-purpose database client market. The official README documents install scripts and Homebrew as supported paths, while the supplied package facts also list a winget package. Its package-manager role is to make cloud database operations scriptable on developer machines and CI systems.

### 使用方式

Users typically run astra setup to create or update credentials in a central .astrarc file, then use astra config subcommands and resource commands such as astra db list. The CLI can also avoid the credentials file by accepting --token and --env, and it supports JSON or CSV output for scripting.

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

For package nerds, astra is a vendor cloud CLI with explicit state paths and credential behavior. The v1 move to XDG_CONFIG_HOME/astra/.astrarc or ~/.astrarc matters because package upgrades can change where tokens live, how scripts authenticate, and whether users should upgrade through the CLI itself or through their package manager.

### 时间线

- 2022: datastax/astra-cli repository created on GitHub.
- 2020s: v0.x CLI existed before the current README's 1.0.0 beta generation.
- 2020s: v1.x README documents Linux, macOS, and Windows support plus XDG-aware configuration.
- 2026: GitHub tags and repository metadata showed active v1-era releases.

### Related projects

- DataStax Astra is the managed database platform operated by the CLI.
- Apache Cassandra and related Astra DB tooling are adjacent to the CLI's database-management use cases.
- Homebrew and winget provide package-manager installation routes alongside DataStax's official install scripts.

### 来源

- <https://api.github.com/repos/datastax/astra-cli>
- <https://docs.datastax.com/en/astra-cli>
- <https://github.com/datastax/astra-cli#readme>
- 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: $XDG_CONFIG_HOME/astra/.astrarc, ~/.astrarc

## Credential files

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

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** astra
- **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

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

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


## 相关链接

- [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.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Database and data packages](https://pkg.so/zh-hans/database-data-tools/) - Matched database, SQL, migration, or data-store metadata.
- [gradle](https://pkg.so/zh-hans/brew/gradle/) - Build dependency declared by Homebrew.
- [graalvm](https://pkg.so/zh-hans/brew/graalvm/) - Build dependency declared by Homebrew.
- [sqlite](https://pkg.so/zh-hans/brew/sqlite/) - Shares pkgdb curated category or tags: cli, data, database.
- [redis](https://pkg.so/zh-hans/brew/redis/) - Shares pkgdb curated category or tags: cli, data, database.
- [gdbm](https://pkg.so/zh-hans/brew/gdbm/) - Shares pkgdb curated category or tags: cli, data, database.
- [mysql](https://pkg.so/zh-hans/brew/mysql/) - Shares pkgdb curated category or tags: cli, data, database.
- [postgresql@14](https://pkg.so/zh-hans/brew/postgresql-14/) - Shares pkgdb curated category or tags: cli, data, database.
- [postgresql@16](https://pkg.so/zh-hans/brew/postgresql-16/) - Shares pkgdb curated category or tags: cli, data, database.
- [postgresql@17](https://pkg.so/zh-hans/brew/postgresql-17/) - Shares pkgdb curated category or tags: cli, data, database.
- [postgresql@18](https://pkg.so/zh-hans/brew/postgresql-18/) - Shares pkgdb curated category or tags: cli, data, database.
- [cql-proxy](https://pkg.so/zh-hans/brew/cql-proxy/) - Local metadata places this package in an adjacent workflow. Shared terms: astra, cli, data, database, datastax.
- [dbx-cli](https://pkg.so/zh-hans/brew/dbx-cli/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, command-line, data, database, interface.
- [hapi-fhir-cli](https://pkg.so/zh-hans/brew/hapi-fhir-cli/) - Local package facts share a topical domain. Shared terms: cli, command-line, data, interface, line.

## Combined YAML source

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