Command-line tool
fileicon
brew/fileicon
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
macOS CLI for managing custom icons for files and folders
At a glance
- Type
- Command-line tool
- Install on
- macOS
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
macOS
brew install fileicon
Set a custom icon for a specific file or directory
fileicon set path/to/file_or_directory path/to/icon_file.png
Remove a custom icon from a specific file or directory
fileicon rm path/to/file_or_directory
Save the custom icon of a file or directory as a `.icns` file into the current directory
fileicon get path/to/file_or_directory
Related command-line tools
- folderify
Generate pixel-perfect macOS folder icons in the native style - dockutil
Tool for managing dock items - pyinstaller
Bundle a Python application and all its dependencies - setweblocthumb
Assigns custom icons to webloc files - Maestral
Open-source Dropbox client - macos-trash
Move files and folders to the trash - filen-cli
Interface with Filen, an end-to-end encrypted cloud storage service linux macos windows cli server webdav s3 mac filen… - FanFolder
FanFolder (Windows package; no description in the winget index) productivity utility macos folder files taskbar shell…
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents