Files
cheatsheet-tldr/tldr/nh-search
2026-01-17 00:21:25 +00:00

22 lines
550 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# nh search
> Search for packages in Nixpkgs.
> More information: <https://github.com/nix-community/nh#usage>.
- Search for a package in Nixpkgs, limiting results:
`nh search {{[-l|--limit]}} {{number}} {{name}}`
- Search for a package in a specified Nixpkgs channel:
`nh search {{[-c|--channel]}} {{nixos-unstable}} {{name}}`
- Search for a package in Nixpkgs, showing supported platforms for each package:
`nh search {{[-P|--platforms]}} {{name}}`