@coolicons/cli
v5.2.0
Published
Search coolicons and copy them into your project from the terminal, without network
Maintainers
Readme
@coolicons/cli
Search coolicons and copy them into your project from the terminal: 1,324 icons in five styles and three corner radii. No install, no dependencies, no network. The whole set ships inside the package.
npx @coolicons/cli search date
npx @coolicons/cli show calendar --style fill > calendar.svg
npx @coolicons/cli add calendar bell --style bulk --radius round --out src/iconsCommands
| Command | |
| --- | --- |
| search <query> | Find icons by name or meaning, ranked like the search on coolicons.cool |
| show <name> | Print one icon's SVG to stdout |
| add <name...> | Write SVG files into a folder |
| list | Print every icon name |
| Option | |
| --- | --- |
| -s, --style | line, duocolor, duotone, fill or bulk. Default line |
| -r, --radius | sharp, regular or round. Default regular |
| -o, --out | Folder for add. Default ./icons |
| -l, --limit | Results for search. Default 20 |
| -c, --category | Only one category, for list |
| --size, --stroke | Size and stroke width of the SVG. Default 24 and 2 |
| --json | Machine readable output for search and list |
show and list write only their result to stdout, everything else goes to stderr, so you can pipe them:
npx @coolicons/cli list | grep chart
npx @coolicons/cli show mail --style fill | pbcopyA name that does not exist suggests the closest ones: show chekc answers with check.
More in the coolicons repository. MIT license.
