# 使用 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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/coursier>
- **版本:** 2.1.24
- **来源摘要:** Pure Scala Artifact Fetching
- **主页:** <https://get-coursier.io/>
- **仓库:** <https://github.com/coursier/coursier>
- **上游文档:** <https://get-coursier.io/>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/coursier/coursier/releases/download/v2.1.24/coursier.jar>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- coursier (cli)
- coursier (别名)

## 依赖

- openjdk

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 2.1.24
- 本地数据: OK
- 上游仓库: https://github.com/coursier/coursier
- 信息: No package-manager update timestamp was available.
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

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
## 源数据库详情

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

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

- 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


## 相关链接

- [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.
- [openjdk](https://pkg.so/zh-hans/brew/openjdk/) - Runtime dependency declared by Homebrew.
- [cocoapods](https://pkg.so/zh-hans/brew/cocoapods/) - Shares pkgdb curated category or tags: cli, dependency-management, dependency-manager, developer-tools.
- [sbt](https://pkg.so/zh-hans/brew/sbt/) - Shares pkgdb curated category or tags: cli, dependency-management, developer-tools, scala.
- [carthage](https://pkg.so/zh-hans/brew/carthage/) - Shares pkgdb curated category or tags: cli, dependency-management, dependency-manager, developer-tools.
- [scala-cli](https://pkg.so/zh-hans/brew/scala-cli/) - Shares pkgdb curated category or tags: cli, developer-tools, scala.
- [sbuild](https://pkg.so/zh-hans/brew/sbuild/) - Shares pkgdb curated category or tags: cli, developer-tools, scala.
- [sbtenv](https://pkg.so/zh-hans/brew/sbtenv/) - Shares pkgdb curated category or tags: cli, developer-tools, scala.
- [pipenv](https://pkg.so/zh-hans/brew/pipenv/) - Shares pkgdb curated category or tags: cli, dependency-management, developer-tools.
- [renovate](https://pkg.so/zh-hans/brew/renovate/) - Shares pkgdb curated category or tags: cli, dependency-management, developer-tools.

## 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
- 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
