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]

 

ArgumentTypeOptionalDescription
limitnumberyesLimits the number of items to be processed, used with offset or page to process batches.
offsetnumberyesThe starting index to return a range of results, cannot be used with page.
pagenumberyesThe 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.
pathsstringyesControls 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-importedswitchyesSkips images that have already been migrated to storage.
skip-thumbnailsswitchyesSkips uploading thumbnails. Requires Imgix.
order-bystringyesThe field to sort the items to be imported by. Valid values are date, title and filename.
orderstringyesThe sort order. Valid values are asc and desc.