Try for free

Migrate To Cloud Storage

Migrates your current WordPress library to cloud storage. Premium version only.

wp mediacloud:storage migrate [--limit=<number>] [--offset=<number>] [--page=<number>] [--paths=preserve|replace|prepend] [--skip-thumbnails]  [--skip-imported] [--order-by=date|title|filename] [--order=asc|desc]
Argument Type Optional Description
limit number yes Limits the number of items to be processed, used with offset or page to process batches.
offset number yes The starting index to return a range of results, cannot be used with page.
page number yes The starting index to return a range of results in terms of pages, cannot be used with offset. The page index start at 1. For example, specify a limit of 100 and a page of 2 would return results 100-200.
paths string yes Controls the upload path. preserve will preserve the files current path, replace will replace it with the custom prefix defined in cloud storage settings. prepend will prepend the custom prefix with the existing upload directory.
skip-imported switch yes Skips images that have already been migrated to storage.
skip-thumbnails switch yes Skips uploading thumbnails. Requires Imgix.
order-by string yes The field to sort the items to be imported by. Valid values are date, title and filename.
order string yes The sort order. Valid values are asc and desc.