Commands
flux search
Search for packages directly from the Flux CLI using smart and fast queries.
Overview
The flux search
command allows you to quickly search for packages from the registry (npm-compatible) directly in your terminal using the Flux CLI.
It uses a blazing fast query engine, optimized for developer experience.
Usage
flux search <package-name>
Example
flux search tailwind
Output:
Found 3 results for "tailwind":
- tailwindcss 3.4.1 Utility-first CSS framework
- tailwind-merge 1.14.0 Merge Tailwind classes without conflicts
- @tailwind/forms 0.5.4 Official Tailwind plugin for forms
Features
- Fast autocomplete-style searching
- Returns relevant results with descriptions and version numbers
- Defaults to top results from npm registry
- Matches full and partial package names
- Great for discovering new packages without leaving the terminal
Use Cases
Discover New Libraries
Looking for alternatives or helper libraries? Try searching with keywords like auth
, date
, router
, or tailwind
.
Confirm Exact Package Name
Use before installing to ensure you’re spelling the name correctly.
Preview Versions and Descriptions
Quickly see the latest version and what the package does before installing.
Tabs: Usage Patterns
flux search react
Finds packages like react
, react-dom
, react-router
, etc.
flux search date
Useful for exploring date libraries like date-fns
, dayjs
, and more.
flux search axios
flux install axios
Use search to verify the package before installing it.
Related Commands
flux install
– Install a package after searchingflux list
– See what’s already installedflux outdated
– Check if an installed package has updates