# 使用 Homebrew, apk, chocolatey, dnf, MacPorts, Nix, pacman, zypper, winget, scoop 安装 nushell

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

## 安装

```sh
sudo av install brew:nushell
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install nushell
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install nushell
```

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

### Linux

- apk (92%):

```sh
sudo apk add nushell
```

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

- dnf (92%):

```sh
sudo dnf install nushell
```

  证据: Fedora Rawhide package metadata: nushell from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#nushell
```

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

- pacman (92%):

```sh
sudo pacman -S nushell
```

  证据: Arch Linux sync databases: nushell from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install nushell
```

  证据: openSUSE Tumbleweed package metadata: nushell from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install nushell
```

  证据: Chocolatey community package catalog: nushell from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','nordvpn-teams'

- winget (92%):

```sh
winget install --id Nushell.Nushell -e
```

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

- Scoop (92%):

```sh
scoop install main/nu
```

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

## 软件包事实

- **软件包键:** brew:nushell
- **软件包管理器:** Homebrew
- **版本:** 0.114.1
- **来源摘要:** Modern shell for the GitHub era
- **主页:** <https://www.nushell.sh>
- **仓库:** <https://github.com/nushell/nushell>
- **最后更新:** 2026-07-11T21:38:11Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- nu (别名)
- nu_plugin_custom_values (别名)
- nu_plugin_example (别名)
- nu_plugin_formats (别名)
- nu_plugin_gstat (别名)
- nu_plugin_inc (别名)
- nu_plugin_polars (别名)
- nu_plugin_query (别名)
- nu_plugin_stress_internals (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Nushell, or Nu, is a Rust-written shell that treats command output as structured data rather than only byte streams of text. It combines Unix pipelines, PowerShell-style structured data, functional-programming ideas, and cross-platform ambitions into a shell whose everyday objects are tables, records, lists, strings, and typed values.

### 项目历史

The first public introduction was published on August 23, 2019 by Sophia Turner, Yehuda Katz, and Andres Robalino, with Odin Dutton contributing. That post framed Nu as a shell where commands such as `ls`, `ps`, and file readers yield structured data that can be filtered and transformed with common verbs, while external commands remain available through normal process execution.

### 采用历史

Nushell's own November 2019 survey captured the early adoption problem: 160 respondents were impressive for a project only a few months public, but most were not yet using Nu, with maturity, time, documentation, integration, and stability as blockers. By the June 27, 2023 'road to 1.0' post, the project reported its 65th public release, official GitHub syntax highlighting, more than 25,000 GitHub stars, and a release-cadence change from three weeks to four weeks to reduce churn on the way to 1.0.

### 使用方式

Nushell users lean on it for interactive data inspection and small automations: loading JSON/TOML/YAML/CSV-like data, sorting and filtering tables, querying process and filesystem data, composing commands, and writing scripts in a shell language that keeps data structured through the pipeline. The repository README points users to the Nushell Book, command reference, cookbook, Discord, package-manager installs, and GitHub Actions setup support.

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

For package nerds, Nushell is both an end-user shell and a packaging stress test: it is a fast-moving Rust binary with plugins, completions, config files, and cross-platform packaging. Homebrew's formula page listed 50,439 installs over 365 days on July 1, 2026, which is meaningful for an alternative shell that users must actively choose over bash, zsh, fish, or PowerShell.

### 时间线

- 2019-08-23: Nushell is publicly introduced.
- 2019-11-23: First Nushell survey reports 160 responses and early maturity/integration blockers.
- 2023-06-27: Nushell 0.82 is described as the 65th public release and a road-to-1.0 milestone.
- 2026-05-30: GitHub release 0.113.1 is published.

### Related projects

- PowerShell
- bash
- zsh
- fish
- setup-nu

### 来源

- <https://api.github.com/repos/nushell/nushell/releases?per_page=100>
- <https://formulae.brew.sh/formula/nushell>
- <https://github.com/nushell/nushell>
- <https://www.nushell.sh/blog/2019-08-23-introducing-nushell.html>
- <https://www.nushell.sh/blog/2019-11-23-nushell-survey-results.html>
- <https://www.nushell.sh/blog/2023-06-27-road-to-1_0.html>


## 安全说明

generalized runtime or code generation signal.

- **Geiger 风险:** yellow / 中
- generalized runtime or code generation signal


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

- Linux: ~/.config/nushell/config.nu, ~/.config/nushell/env.nu, ~/.config/nushell/login.nu
- macOS: ~/Library/Application Support/nushell/config.nu, ~/Library/Application Support/nushell/env.nu, ~/Library/Application Support/nushell/login.nu
- Windows: %APPDATA%\nushell\config.nu, %APPDATA%\nushell\env.nu, %APPDATA%\nushell\login.nu
## 其他软件包管理器记录

- Nix - nushell: normalized package name match | nixpkgs package indexes: pkgs/by-name/nu/nushell/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - nushell - 0.104.1-r0: normalized package name match | Alpine Linux edge package indexes: nushell from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A new type of shell | https://www.nushell.sh
- apk - nushell-doc - 0.104.1-r0: normalized package name match | Alpine Linux edge package indexes: nushell-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A new type of shell (documentation) | https://www.nushell.sh
- apk - nushell-plugins - 0.104.1-r0: normalized package name match | Alpine Linux edge package indexes: nushell-plugins from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Nushell plugins | https://www.nushell.sh
- dnf - nushell - 0.99.1-7.fc45: normalized package name match | Fedora Rawhide package metadata: nushell from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | A new type of shell | https://www.nushell.sh/
- pacman - nushell - 0.114.1-2: normalized package name match | Arch Linux sync databases: nushell from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A new type of shell | https://www.nushell.sh
- zypper - nushell - 0.114.1-1.2: normalized package name match | openSUSE Tumbleweed package metadata: nushell from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A new type of shell | https://www.nushell.sh/
- zypper - nushell-plugin_custom_values - 0.114.1-1.2: normalized package name match | openSUSE Tumbleweed package metadata: nushell-plugin_custom_values from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Plugin nu_plugin_custom_values for nushell | https://www.nushell.sh/
- zypper - nushell-plugin_example - 0.114.1-1.2: normalized package name match | openSUSE Tumbleweed package metadata: nushell-plugin_example from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Plugin nu_plugin_example for nushell | https://www.nushell.sh/
- zypper - nushell-plugin_formats - 0.114.1-1.2: normalized package name match | openSUSE Tumbleweed package metadata: nushell-plugin_formats from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Plugin nu_plugin_formats for nushell | https://www.nushell.sh/
- zypper - nushell-plugin_gstat - 0.114.1-1.2: normalized package name match | openSUSE Tumbleweed package metadata: nushell-plugin_gstat from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Plugin nu_plugin_gstat for nushell | https://www.nushell.sh/
- zypper - nushell-plugin_inc - 0.114.1-1.2: normalized package name match | openSUSE Tumbleweed package metadata: nushell-plugin_inc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Plugin nu_plugin_inc for nushell | https://www.nushell.sh/
- zypper - nushell-plugin_polars - 0.114.1-1.2: normalized package name match | openSUSE Tumbleweed package metadata: nushell-plugin_polars from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Plugin nu_plugin_polars for nushell | https://www.nushell.sh/
- zypper - nushell-plugin_query - 0.114.1-1.2: normalized package name match | openSUSE Tumbleweed package metadata: nushell-plugin_query from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Plugin nu_plugin_query for nushell | https://www.nushell.sh/
- zypper - nushell-plugin_stress_internals - 0.114.1-1.2: normalized package name match | openSUSE Tumbleweed package metadata: nushell-plugin_stress_internals from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Plugin nu_plugin_stress_internals for nushell | https://www.nushell.sh/
- MacPorts - nushell: normalized package name match | MacPorts ports tree: shells/nushell/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

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