# export

Source: https://uglydev.com/docs/wp-cli/export/
Updated: 20 November 2026

Writes all the **groups, options pages and content types** to one JSON file.

```bash
wp ugly-fields export ugly-backup.json
wp ugly-fields export > ugly-backup.json
```

| Argument | Meaning |
| --- | --- |
| `<file>` | Where to write it. **Without it, the JSON is printed on the screen** |

It is the same file the **Migration** screen makes. Take it to another site with `wp ugly-fields import`.

> **A backup before a big change:** `wp ugly-fields export "backup-$(date +%F).json"` keeps one file for each day.
