Denji

denji export

Export a JSON manifest of all tracked icons

Export a JSON manifest of all icons currently in your project. Useful for audits, migrations, and sharing icon inventories between projects.

Usage

denji export [options]

Options

--output

Type: string (optional value)

Write the manifest to a file instead of printing to stdout.

# Write to a specific path
denji export --output icons.json

# Write to the default filename (denji-export.json)
denji export --output

When omitted, the manifest is printed to stdout.

Examples

Print manifest to stdout:

denji export

Write to a file:

denji export --output denji-export.json

Pipe into another tool:

denji export | jq '.icons[].source'

Output Format

{
  "version": 1,
  "framework": "react",
  "output": "./src/icons.tsx",
  "icons": [
    { "name": "Check", "source": "lucide:check" },
    { "name": "Home", "source": "mdi:home" }
  ]
}
FieldDescription
versionManifest schema version
frameworkFramework from your denji.json config
outputOutput path from your denji.json config
icons[].nameComponent name
icons[].sourceIconify identifier (prefix:name)

The source field is only present when trackSource: true (the default). Icons added before enabling trackSource will appear without a source field.

Use Cases

  • Audit which icons are in use
  • Share icon sets between projects via denji import
  • Generate documentation or reports
  • CI/CD checks on icon inventory

On this page