rdicons CLI Coming soon
Search icons and drop them into any project as SVG, JSX or TSX. No framework needed.
Publishing to npm is coming soon.
Try it
npx rdicons add lucide:houseThat writes icons/lucide-house.svg. Needs Node 18 or newer.
Commands
rdicons add <set:name> [more...] download icons into a folder
rdicons search <query> [--set s] find icons by name
rdicons info <set:name> show the code for one icon (every install option)
rdicons sets list the 18 libraries and their licensesExamples
# React components, recolored, into src/icons
npx rdicons add tabler:bell ph:heart --format tsx --out src/icons --color "#4f46e5" --size 20
# find an icon, then add it
npx rdicons search "arrow right" --set lucide
npx rdicons add lucide:arrow-rightOptions for add
| Option | Default | |
|---|---|---|
--format | svg | svg, jsx or tsx |
--out | ./icons | Folder to write into (created if missing) |
--color | currentColor | Any CSS color |
--size | 24 | Width and height in px |
--stroke | icon's own | Stroke width for outline icons |
--padding | 0 | Extra space around the icon |
--background | none | Solid background color |
Notes
- Icons are fetched from this website, so you need an internet connection. Set
RDICONS_URLto use another address. - Icons keep their own license. Run
rdicons setsto see them, and read Icon licenses. - On npm: rdicons.