macOS / binaries /

fileicon

/usr/local/bin/fileicon
CLI for managing custom icons

fileicon allows assigning a custom icon to any file or folder, using any image file whose format is recognized by the system.