# WP-CLI

> Safe Media Offload's wp zdom commands for status, offloading, verifying and restoring.

```bash
wp zdom status                       # how much is offloaded, bucket-only and failed
wp zdom offload --dry-run            # what would be uploaded, and roughly how much
wp zdom offload --batch=25           # copy everything not yet in the bucket
wp zdom offload 123 456              # these attachments, even if already offloaded
wp zdom verify                       # is every recorded file still in the bucket?
wp zdom download                     # bring local copies back
```

`wp media regenerate` works without local copies: it fetches each original from the bucket as it reaches it. Use `wp zdom download` to bring every local copy back, for example before you turn the plugin off, or for a tool that reads the uploads folder directly.

Checked against ZealDen Safe Media Offload 1.0.3 on main, 19 October 2026.
