FILE-ICON-CLI(1)
NAME
file-icon-cli — Get the icon of a file or app as a PNG image (macOS)
SYNOPSIS
INFO
90 stars
4 forks
0 views
JavaScriptMedia & Images
DESCRIPTION
Get the icon of a file or app as a PNG image (macOS)
README
file-icon-cli
Get the icon of a file or app as a PNG image (macOS)
Install
npm install --global file-icon-cli
Usage
$ file-icon --helpUsage $ file-icon <app-name|bundle-id|file-path> $ file-icon <app-name|bundle-id|file-path> > icon.png
Options --size Size of the icon [Max: 1024]
Examples $ file-icon Safari /tmp/86ca9400-9f34-4a64-ab24-027d80f88b46/icon.png $ file-icon com.apple.Safari /tmp/ece2b714-6c6c-4677-a57c-e0e18f7b9405/icon.png $ file-icon unicorn.jpg --size=512 /tmp/c3871faa-d759-48b9-ac85-5504d712a02a/icon.png $ file-icon Safari > icon.png
Tip
Get the icon as Base64:
file-icon --size=1024 /Applications/Safari.app | base64
Related
- file-icon - API for this package
SEE ALSO
music-player(1)— An extensible music server written in Rust 🚀🎵✨Upscaler(1)— A consolidation of various compiled open-source AI image/video upscaling product for a working CLI friendly image and…library(1)— 99+ CLI tools to build, browse, and blend your media librarypalettum(1)— Web app and CLI tool that lets you recolor images, GIFs, and videos with any custom palette of your choosingytconverter(1)— The ytconverter is a CLI tool for downloading YouTube videos in various format directly from the terminal. It…
clihub3/4/2026FILE-ICON-CLI(1)