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 --outputWhen omitted, the manifest is printed to stdout.
Examples
Print manifest to stdout:
denji exportWrite to a file:
denji export --output denji-export.jsonPipe 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" }
]
}| Field | Description |
|---|---|
version | Manifest schema version |
framework | Framework from your denji.json config |
output | Output path from your denji.json config |
icons[].name | Component name |
icons[].source | Iconify 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