Upload file to the specified folder
- command:
spo file add -w|--webUrl <webUrl> -f|--folder <folder> -p|--path <path> -c|--contentType [contentType] --checkOut --checkInComment [checkInComment] --approve --approveComment [approveComment] --publish --publishComment [publishComment] ...
- webUrl: The URL of the site where the file should be uploaded to
- folder: server- or site-relative URL to the folder where the file should be uploaded
- path: local path to the file to upload
- contentType: content type name or ID to assign to the file
- checkOut: if versioning is enabled, this will check out the file first if it exists, upload the file, then check it in again
- checkInComment: comment to set when checking the file in
- approve: will automatically approve the uploaded file
- approveComment: comment to set when approving the file
- publish: will automatically publish the uploaded file
- publishComment: comment to set when publishing the file
- ...: this command should allow using unknown properties. Each property corresponds to the list item field that should be set when uploading the file. Command properties should be excluded from the SharePoint request
- requires connection to a SharePoint site
For more information see the Add-PnPFile cmdlet
Upload file to the specified folder
spo file add -w|--webUrl <webUrl> -f|--folder <folder> -p|--path <path> -c|--contentType [contentType] --checkOut --checkInComment [checkInComment] --approve --approveComment [approveComment] --publish --publishComment [publishComment] ...For more information see the Add-PnPFile cmdlet