CLI
The vendor/bin/favicon executable generates a favicon set from one required
SVG or PNG input path.
vendor/bin/favicon <input> [options]
| Option | Default | Purpose |
|---|---|---|
--output, -o |
public |
Filesystem output directory |
--public-path |
/ |
URL prefix used in HTML and the manifest |
--app-name |
App |
Application name used in the manifest |
--theme-color |
#0b0b0b |
Browser UI and manifest theme color |
--background-color |
#ffffff |
Manifest background color |
--manifest |
Disabled | Generate the Web App Manifest and Android icons |
--search-png |
Disabled | Generate the 48 by 48 Google Search PNG |
--force, -f |
Disabled | Overwrite existing generated files |
Minimal set
vendor/bin/favicon assets/logo.svgComplete optional set
vendor/bin/favicon assets/logo.svg --manifest --search-pngCustom paths and colors
vendor/bin/favicon assets/logo.svg \
--output public/assets/favicons \
--public-path /assets/favicons \
--app-name "My App" \
--theme-color "#00b7ff" \
--background-color "#050608"Colors must use six hexadecimal digits. Invalid colors fail before generation. The command exits successfully after printing the output directory, the status of each file, and the generated HTML snippet.