spo site recyclebinitem restore
Restores given items from the site recycle bin
Usage
m365 spo site recyclebinitem restore [options]
Options
-u, --siteUrl <siteUrl>URL of the site for which to restore the recycle bin items
-i, --ids <ids>List of ids of items which will be restored from the site recycle bin
-h, --help [help]Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are
options,examples,remarks,response,full. Default isfull.--query [query]JMESPath query string. See http://jmespath.org/ for more information and examples.
-o, --output [output]Output type.
json,text,csv,md. Defaultjson.--verboseRuns command with verbose logging.
--debugRuns command with debug logging.
Examples
Restore specific items by given ids from recycle bin for site https://contoso.sharepoint.com/site
m365 spo site recyclebinitem restore --siteUrl https://contoso.sharepoint.com/site --ids "ae6f97a7-280e-48d6-b481-0ea986c323da,aadbf916-1f71-42ee-abf2-8ee4802ae291"