CLI · Nuxt SEO Utils · Nuxt SEO

-
-
-
-

[1.4K](https://github.com/harlan-zw/nuxt-seo)

[Nuxt SEO on GitHub](https://github.com/harlan-zw/nuxt-seo)

SEO Utils

-
-
-
-
-
-
-
-
-
-

Search…```k`` /`

v8.1.7

- Playgrounds
- [Discord Support](https://discord.com/invite/275MBUBvgP)

### Getting Started

-
-
-

### Core Concepts

-
-
-
-
-
-
-
-
-
-

Core Concepts

# CLI

[Copy for LLMs](https://nuxtseo.com/docs/seo-utils/guides/cli.md)

## [Overview](#overview)

Nuxt SEO Utils includes a CLI for generating favicon and app icon variants from a single source image. It produces all the standard sizes needed for modern browsers and devices.

When running in development mode, the module will detect if your project is missing favicon files and suggest the CLI command to generate them.

## [Icon Generation](#icon-generation)

Generate favicon and icon variants from a source image in your `public/` directory:

```
npx nuxt-seo-utils icons --source logo.svg
```

### [What It Generates](#what-it-generates)

| File | Size | Purpose |
| --- | --- | --- |
| `icon-16x16.png` | 16x16 | Small favicon |
| `icon-32x32.png` | 32x32 | Standard favicon |
| `apple-touch-icon.png` | 180x180 | iOS home screen |
| `icon-192x192.png` | 192x192 | Android / PWA |
| `icon-512x512.png` | 512x512 | PWA splash |
| `favicon.ico` | 32x32 | Legacy browser support |

All files are written to your `public/` directory and automatically detected by the module.

### [Supported Source Formats](#supported-source-formats)

SVG, PNG, JPG, JPEG, and WebP files are supported as input. SVG is recommended for best quality at all sizes.

### [Requirements](#requirements)

The CLI uses [sharp](https://sharp.pixelplumbing.com/) for image processing. Install it as a dev dependency:

```
pnpm add -D sharp
```

### [Options](#options)

| Option | Description |
| --- | --- |
| `--source` | Source image file relative to the public directory (required) |
| `--cwd` | Working directory (default: `.`) |

[Edit this page](https://github.com/harlan-zw/nuxt-seo-utils/edit/main/docs/content/2.guides/5.cli.md)

[Markdown For LLMs](https://nuxtseo.com/docs/seo-utils/guides/cli.md)

Did this page help you?

On this page

- [Overview](#overview)
- [Icon Generation](#icon-generation)

[GitHub](https://github.com/harlan-zw/nuxt-seo) [ Discord](https://discord.com/invite/275MBUBvgP)

###

-
-

Modules

-
-
-
-
-
-
-
-
-

###

-
-
-

###

Nuxt

-
-
-
-
-

Vue

-
-
-
-
-
-
-
-

###

-
-
-
-
-
-
-
-
-
-

Copyright © 2023-2026 Harlan Wilton - [MIT License](https://github.com/harlan-zw/nuxt-seo/blob/main/license) · [mdream](https://mdream.dev)