# import

Source: https://uglydev.com/docs/wp-cli/import/
Updated: 19 November 2026

```bash
wp ugly-fields import <file>
```

Saves the groups, options pages and content types of a file made by `export`.

| Argument | Meaning |
| --- | --- |
| `<file>` | The file to read. **Required** |

The file goes through the **same cleaning** as a group made in the builder, with the same limits. A problem in one item is a warning and the rest are imported. The command only fails if nothing could be imported.

```
$ wp ugly-fields import ugly-backup.json
Warning: group_old: The group has a field type that does not exist.
Success: 11 item(s) imported: group_hero, group_team, …
```

> **Tip:** an **ACF** export file also works here. See [Moving from ACF](https://uglydev.com/docs/files-sync-and-the-terminal/moving-from-acf/).
