---
title: "CLI · Nuxt SEO Utils · Nuxt SEO"
canonical_url: "https://nuxtseo.com/docs/seo-utils/guides/cli"
last_updated: "2026-08-16T10:05:35.098Z"
meta:
  description: "Use the nuxt-seo-utils CLI to generate favicon and icon variants."
  "og:description": "Use the nuxt-seo-utils CLI to generate favicon and icon variants."
  "og:title": "CLI · Nuxt SEO Utils · Nuxt SEO"
---

Nuxt SEO on GitHub

Switch to SEO UtilsSwitch to Nuxt SEOSwitch to RobotsSwitch to SitemapSwitch to OG ImageSwitch to Schema.orgSwitch to Link CheckerSwitch to Site ConfigSwitch to Skew ProtectionSwitch to AI Ready

**Core Concepts**

# **CLI**

## 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

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

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

### 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**` | 16x16, 32x32, 48x48 | Browser and legacy support |

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

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

### Requirements

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

```bash
pnpm add -D sharp
```

### Options

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

**Was this page helpful?**

### **Related **

[**App Icons**](https://nuxtseo.com/docs/seo-utils/guides/app-icons)

[**Open Graph Images**](https://nuxtseo.com/docs/seo-utils/guides/open-graph-images)

[**Nuxt OG Image**](https://nuxtseo.com/docs/og-image/getting-started/introduction)

[**Nuxt Config SEO Meta** Make use of the power of useSeoMeta inside your nuxt.config.](https://nuxtseo.com/docs/seo-utils/guides/nuxt-config-seo-meta) [**Inline Minification** Minify inline scripts and styles at build time, with optional minification for dynamic SSR.](https://nuxtseo.com/docs/seo-utils/guides/minification)