WP-CLI Command Reference
All commands are registered under wp universal-storage when the plugin is active and
WP-CLI is available.
wp universal-storage status # totals: offloaded/pending/failed/verifiedwp universal-storage test # connection test (client, bucket, upload, HEAD, delete)wp universal-storage migrate --dry-runwp universal-storage migrate --batch-size=100wp universal-storage migrate --attachment-id=123 --verbosewp universal-storage migrate --delete-localwp universal-storage verifywp universal-storage retry_failedwp universal-storage restorewp universal-storage health scan --fullwp universal-storage health orphan # Prowp universal-storage repair --dry-runwp universal-storage storage_migrate --source-profile=1 --dest-profile=2 --dry-run # Prowp universal-storage adopt # inventory pre-existing offloaded media (HEAD-only, never re-uploads)wp universal-storage queue statusCommands marked # Pro require the KAZCODE Universal Storage Pro add-on active; without
it they exit with a clear error rather than a raw PHP exception.
Docker Compose example
docker compose exec -T php wp universal-storage testdocker compose exec -T php wp universal-storage migrate --dry-run --batch-size=20Notes
adoptis for pre-existing offloaded attachments — for example, media that was already uploaded to your bucket by some other means before this plugin managed it. It only does HEAD checks to build its inventory; it never re-uploads.migrate --delete-localdeletes the local copy only after that file’s remote upload is verified — the plugin’s local-deletion safety check applies here exactly as it does everywhere else in the plugin.