# Install trash-cli with npm

Move files and folders to the trash. Version 7.2.0 via npm; verified 2026-02-02.

## Install

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

Additional install commands:

### Portable and language managers

- npm (100%):

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

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:trash-cli
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/trash-cli>
- **Version:** 7.2.0
- **Source summary:** Move files and folders to the trash
- **Homepage:** <https://github.com/sindresorhus/trash-cli#readme>
- **Repository:** <https://github.com/sindresorhus/trash-cli>
- **Upstream docs:** <https://github.com/sindresorhus/trash-cli#readme>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/trash-cli/-/trash-cli-7.2.0.tgz>
- **Issue tracker:** <https://github.com/sindresorhus/trash-cli/issues>
- **Published:** 2026-02-02T05:21:20.907Z
- **Last updated:** 2026-02-02T05:21:20.907Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- trash (cli)

## Dependencies

- globby
- meow
- trash

## Build dependencies

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

## Install behavior

- Post-install hook: not defined
- Bottle: not available

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 7.2.0
- Package-manager updated: 2026-02-02
- Local data: ok
- Upstream repository: https://github.com/sindresorhus/trash-cli
- info: No cached GitHub release or tag data was available.

## Security Notes

No matching local secret-handling manifest was found for trash-cli. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

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

## Other Package-Manager Records

- 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


## Related links

- [npm command packages](https://www.automicvault.com/pkg/npm-cli-packages/) - Matched curated package taxonomy and local package facts.
- [trash-cli](https://www.automicvault.com/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/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/pkg/brew/macos-trash/) - Executable or command metadata overlaps with this package. Shared terms: files, folders, move, trash.
- [trash-cli](https://www.automicvault.com/pkg/brew/trash-cli/) - Same normalized package name exists in another local package ecosystem.

## Sources

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