# 使用 Homebrew, apk, apt, MacPorts, Nix, scoop 安装 amber

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

## 安装

```sh
sudo av install brew:amber
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install amber
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install amber
```

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

### Linux

- apk (92%):

```sh
sudo apk add amber
```

  证据: Alpine Linux edge package indexes: amber from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install amber
```

  证据: Debian stable package indexes: amber from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#amber
```

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

### Windows

- Scoop (92%):

```sh
scoop install extras/amber
```

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

## 软件包事实

- **软件包键:** brew:amber
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/amber>
- **版本:** 1.5.0
- **来源摘要:** Crystal web framework. Bare metal performance, productivity and happiness
- **主页:** <https://amberframework.org/>
- **仓库:** <https://github.com/amberframework/amber>
- **上游文档:** <https://amberframework.org/>
- **许可证:** MIT
- **源码归档:** <https://github.com/amberframework/amber/archive/refs/tags/v1.5.0.tar.gz>
- **最后更新:** 2026-08-01T21:29:33Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- amber (cli)
- amber (别名)

## 依赖

- bdw-gc
- crystal
- libevent
- libyaml
- openssl@3
- pcre2
- sqlite

## 安装行为

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

## 版本和新鲜度

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

Amber is a Crystal web application framework and CLI that packages the familiar full-stack MVC framework experience for Crystal developers. Its own README says it is inspired by Kemal, Rails, Phoenix, and other popular frameworks, with a focus on productivity, performance, and developer happiness.

### 项目历史

The amberframework/amber repository was created in April 2017, during the period when Crystal's web ecosystem was forming around small fast HTTP libraries, Rails-like frameworks, and experiments in compiled-language productivity. Amber positioned itself as the cohesive, batteries-included option, not just a minimal web server shard.

Official documentation describes Amber as a server-side MVC framework with generators, database management, CLI commands, deployment tools, Docker support, encrypted secrets, websockets, and a conventional application layout. The README names Dru Jensen, Elias Perez, Isaac Sloan, Faustino Aguilar, Nick Franken, Mark Siemers, and Robert Carpenter among visible contributors.

### 采用历史

Amber's adoption has largely followed the Crystal community rather than mainstream web-framework volume. It was packaged for Homebrew and other package managers because it provides a real CLI binary, project generator, and local development workflow, not just a library dependency in shard.yml.

The release stream reached v1.0 release-candidate status in 2021 and stable 1.4.x releases in 2023. Its documentation and README continued to emphasize familiar framework ergonomics for developers coming from Rails, Phoenix, Django, or Kemal.

### 使用方式

Users install the amber CLI, generate or manage an Amber project, and keep project-specific framework configuration under the application's config directory. The official configuration guide says each Amber project has config/environments YAML files such as development, test, and production, selected at runtime using AMBER_ENV.

Amber also has a built-in encrypt command for environment settings. Official docs say amber encrypt production decrypts and edits config/environments/.production.enc using .encryption_key or ENV[AMBER_ENCRYPTION_KEY], and warn that the encryption key should not be committed.

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

Amber is package-interesting because it is both a framework dependency and a generator CLI. Installing it from Homebrew gives users a global executable, while generated projects still depend on Crystal shards and checked-in application templates.

It also represents the Crystal ecosystem's recurring question for packagers: should framework tools be installed globally as native binaries, vendored through shards, or built per project with shards build amber?

### 时间线

- 2017-04-17: amberframework/amber repository is created.
- 2021-06-15: v1.0.0rc2 release is published.
- 2022-10-26: v1.3.0 release is published.
- 2023-08-01: v1.4.0 release is published.
- 2023-08-02: v1.4.1 release is published.

### Related projects

- Crystal is the language runtime and shard ecosystem Amber targets.
- Kemal, Rails, Phoenix, Django, and Hanami are named by Amber docs or README as inspirations or comparable framework traditions.
- Amber's separate docs repository and site-assets repository support its documentation and project branding.

### 来源

- <https://api.github.com/repos/amberframework/amber>
- <https://api.github.com/repos/amberframework/amber/releases?per_page=8>
- <https://raw.githubusercontent.com/amberframework/amber/master/README.md>
- <https://raw.githubusercontent.com/amberframework/docs/master/README.md>
- <https://raw.githubusercontent.com/amberframework/docs/master/cli/encrypt.md>
- <https://raw.githubusercontent.com/amberframework/docs/master/guides/configuration.md>


## 安全说明

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: config/environments/development.yml, config/environments/production.yml, config/environments/.production.enc

## Credential files

- Unix: .encryption_key, config/environments/.production.enc
## 源数据库详情

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

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

- Debian apt - amber - 0.0~git20171010.cdade1c-2+b16: normalized package name match | Debian stable package indexes: amber from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Elegant HTML templating engine for Go, inspired from HAML and Jade (CLI tool) | https://github.com/eknkc/amber
- Nix - amber: normalized package name match | nixpkgs package indexes: pkgs/by-name/am/amber/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - amber - 0.0~git20171010.cdade1c-2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: amber from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Elegant HTML templating engine for Go, inspired from HAML and Jade (CLI tool) | https://github.com/eknkc/amber
- apk - amber - 0.5.1_alpha-r0: normalized package name match | Alpine Linux edge package indexes: amber from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Programming language compiled to bash | https://amber-lang.com
- MacPorts - amber: normalized package name match | MacPorts ports tree: www/amber/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - extras/amber: normalized package name match | Scoop official bucket manifest trees: bucket/amber.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1


## 相关链接

- [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.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [openssl@3](https://pkg.so/zh-hans/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [sqlite](https://pkg.so/zh-hans/brew/sqlite/) - Runtime dependency declared by Homebrew.
- [pcre2](https://pkg.so/zh-hans/brew/pcre2/) - Runtime dependency declared by Homebrew.
- [libevent](https://pkg.so/zh-hans/brew/libevent/) - Runtime dependency declared by Homebrew.
- [crystal](https://pkg.so/zh-hans/brew/crystal/) - Runtime dependency declared by Homebrew.
- [skinny](https://pkg.so/zh-hans/brew/skinny/) - Shares pkgdb curated category or tags: cli, developer-tools, mvc, web-framework, web-frameworks.
- [fastapi](https://pkg.so/zh-hans/brew/fastapi/) - Shares pkgdb curated category or tags: cli, developer-tools, web-framework, web-frameworks.
- [drogon](https://pkg.so/zh-hans/brew/drogon/) - Shares pkgdb curated category or tags: cli, developer-tools, web-framework, web-frameworks.
- [grails](https://pkg.so/zh-hans/brew/grails/) - Shares pkgdb curated category or tags: cli, developer-tools, mvc, web-framework.
- [treefrog](https://pkg.so/zh-hans/brew/treefrog/) - Shares pkgdb curated category or tags: cli, developer-tools, mvc, web-framework.
- [cookiecutter](https://pkg.so/zh-hans/brew/cookiecutter/) - Shares pkgdb curated category or tags: cli, developer-tools, scaffolding.
- [copier](https://pkg.so/zh-hans/brew/copier/) - Shares pkgdb curated category or tags: cli, developer-tools, scaffolding.
- [vapor](https://pkg.so/zh-hans/brew/vapor/) - Shares pkgdb curated category or tags: cli, developer-tools, web-framework.
- [crystal-icr](https://pkg.so/zh-hans/brew/crystal-icr/) - Local package facts share a topical domain. Shared terms: bdw, bdw-gc, cli, crystal, developer.

## Combined YAML source

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