# 使用 npm 安装 trash-cli

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

## 安装

```sh
sudo av install npm:trash-cli
```

其他安装命令:

### 便携式和语言管理器

- npm (100%):

```sh
npm install -g trash-cli
```

  证据: local npm package metadata

## 软件包事实

- **软件包键:** npm:trash-cli
- **软件包管理器:** npm
- **软件包管理器页面:** <https://www.npmjs.com/package/trash-cli>
- **版本:** 7.2.0
- **来源摘要:** Move files and folders to the trash
- **主页:** <https://github.com/sindresorhus/trash-cli#readme>
- **仓库:** <https://github.com/sindresorhus/trash-cli>
- **上游文档:** <https://github.com/sindresorhus/trash-cli#readme>
- **许可证:** MIT
- **源码归档:** <https://registry.npmjs.org/trash-cli/-/trash-cli-7.2.0.tgz>
- **问题跟踪器:** <https://github.com/sindresorhus/trash-cli/issues>
- **发布时间:** 2026-02-02T05:21:20.907Z
- **最后更新:** 2026-02-02T05:21:20.907Z
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- trash (cli)

## 依赖

- globby
- meow
- trash

## 构建依赖

- ava
- execa
- path-exists
- temp-write
- xo

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 7.2.0
- 管理器更新时间: 2026-02-02
- 本地数据: OK
- 上游仓库: https://github.com/sindresorhus/trash-cli
- 信息: No cached GitHub release or tag data was available.

## 安全说明

没有找到 trash-cli 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

- **Source Database:** npm registry
- **Dist Tags:** Latest: 7.2.0
- **Version Count:** 16
- **Maintainers:** sindresorhus
- **Author:** Sindre Sorhus
- **Publisher:** sindresorhus
- **Engines:** Node: >=20
- **Funding:** <https://github.com/sponsors/sindresorhus>
- **Integrity:** sha512-sAYiGGt1/0HdqBxUFZHf6MozeDqLbaQC605gOwjS+ySUw9YqVf9ggpCtiUn6UFXYd50fLol/Im6Jst4FAqhR4w==
- **Shasum:** c7dc82bd1605921af76f7777ce79b9ad3f0a72fa
- **Unpacked Size:** 4,518
- **File Count:** 0
- **Created At:** 2015-10-13T07:29:21.408Z
- **Latest Published At:** 2026-02-02T05:21:20.907Z
- **Modified At:** 2026-02-02T05:21:21.020Z

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

- Debian apt - trash-cli - 0.24.5.26-0.3: normalized package name match | Debian stable package indexes: trash-cli from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | command line trashcan utility | https://github.com/andreafrancia/trash-cli
- Nix - trash-cli: normalized package name match | nixpkgs package indexes: pkgs/by-name/tr/trash-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - trash-cli - 0.23.11.10-1: normalized package name match | Ubuntu 24.04 LTS package indexes: trash-cli from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | command line trashcan utility | https://github.com/andreafrancia/trash-cli
- apk - trash-cli - 0.24.5.26-r1: normalized package name match | Alpine Linux edge package indexes: trash-cli from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Command line interface to the freedesktop.org trashcan | https://github.com/andreafrancia/trash-cli
- apk - trash-cli-doc - 0.24.5.26-r1: normalized package name match | Alpine Linux edge package indexes: trash-cli-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Command line interface to the freedesktop.org trashcan (documentation) | https://github.com/andreafrancia/trash-cli
- apk - trash-cli-pyc - 0.24.5.26-r1: normalized package name match | Alpine Linux edge package indexes: trash-cli-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Precompiled Python bytecode for trash-cli | https://github.com/andreafrancia/trash-cli
- dnf - trash-cli - 0.24.5.26-20.fc45: normalized package name match | Fedora Rawhide package metadata: trash-cli from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Command line interface to the freedesktop.org trashcan | https://github.com/andreafrancia/trash-cli
- pacman - trash-cli - 0.24.5.26-3: normalized package name match | Arch Linux sync databases: trash-cli from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Command line trashcan (recycle bin) interface | https://github.com/andreafrancia/trash-cli
- zypper - trash-cli - 0.24.5.26-1.4: normalized package name match | openSUSE Tumbleweed package metadata: trash-cli from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Command line interface to the freedesktop.org trashcan | https://github.com/andreafrancia/trash-cli
- MacPorts - trash: installed executable or alias match | MacPorts ports tree: sysutils/trash/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [npm command packages](https://www.automicvault.com/zh-hans/pkg/npm-cli-packages/) - Matched curated package taxonomy and local package facts.
- [trash-cli](https://www.automicvault.com/zh-hans/pkg/brew/trash-cli/) - Same normalized package name appears in another local ecosystem. Shared terms: file, trash, trash-cli.
- [del-cli](https://www.automicvault.com/zh-hans/pkg/npm/del-cli/) - Local package facts share a topical domain. Shared terms: cli-app, del, delete, directories, files.
- [macos-trash](https://www.automicvault.com/zh-hans/pkg/brew/macos-trash/) - Executable or command metadata overlaps with this package. Shared terms: files, folders, move, trash.
- [trash-cli](https://www.automicvault.com/zh-hans/pkg/brew/trash-cli/) - Same normalized package name exists in another local package ecosystem.

## 来源

- Nucleus package database
- package-page enrichment
- package version freshness
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
