# 使用 Homebrew, Nix, scoop 安装 coursier

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

## 安装

```sh
sudo av install brew:coursier
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install coursier
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#coursier
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/coursier
```

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

## 软件包事实

- **软件包键:** brew:coursier
- **软件包管理器:** Homebrew
- **版本:** 2.1.24
- **来源摘要:** Pure Scala Artifact Fetching
- **主页:** <https://get-coursier.io/>
- **仓库:** <https://github.com/coursier/coursier>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- coursier (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Coursier is a Scala application and artifact manager used to install Scala applications, set up Scala development environments, and download and cache JVM artifacts.

### 项目历史

The public repository was created in 2015. The official overview describes Coursier as a Maven/Ivy-style dependency resolver and fetcher rewritten from scratch in Scala, designed to be fast and embeddable.

The README notes that large parts of Coursier development since September 2018 were funded by the Scala Center.

### 采用历史

Coursier became infrastructure in the Scala ecosystem rather than only an end-user CLI. The official users page lists Scastie, Scalafiddle, Ammonite, Mill, sbt, Pants, Scalafmt, Scalafix, Scala Jupyter kernels, and Scala language-server tooling as users or integrations.

The Coursier docs also record a major packaging milestone: sbt 1.3.x shipped with Coursier support enabled by default, reducing the need for the separate `sbt-coursier` plugin in most sbt 1.3.x builds.

### 使用方式

As the `cs` command-line tool, Coursier installs Scala applications, launches applications, creates standalone launchers, resolves dependencies, fetches artifacts, manages Java runtimes, and sets up common Scala tools.

For private repositories, credentials can be supplied inline, by environment or Java property, or via `credentials.properties` in platform-specific config locations.

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

Coursier matters to package and build-tool maintainers because it sits at the boundary between package managers, Maven/Ivy metadata, launcher generation, dependency caches, and Scala build reproducibility. It is both a CLI package and a library consumed by other tools.

### 时间线

- 2015: Public GitHub repository created.
- 2018: Scala Center funding noted for large parts of development from September onward.
- 2019: sbt 1.3.x line documented as shipping with Coursier support enabled by default.
- 2026: v2.1.25 milestone releases continue.

### Related projects

- sbt
- sbt-coursier
- Mill
- Ammonite
- Scala CLI
- Scalafmt
- Scalafix

### 来源

- <https://get-coursier.io/docs/overview>
- <https://get-coursier.io/docs/overview-in-the-wild>
- <https://get-coursier.io/docs/sbt-coursier>
- <https://get-coursier.io/docs/cli-installation>
- <https://get-coursier.io/docs/other-credentials>
- <https://github.com/coursier/coursier>
- <https://api.github.com/repos/coursier/coursier>
- <https://github.com/coursier/coursier/releases>


## 安全说明

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.


## Credential files

- Linux: ~/.config/coursier/credentials.properties
- macOS: ~/Library/Application Support/Coursier/credentials.properties
## 其他软件包管理器记录

- Nix - coursier: normalized package name match | nixpkgs package indexes: pkgs/by-name/co/coursier/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Scoop - main/coursier: normalized package name match | Scoop official bucket manifest trees: bucket/coursier.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## Combined YAML source

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