spo file checkin¶
Checks in specified file
Usage¶
m365 spo file checkin [options]
Options¶
-u, --webUrl <webUrl>
- The URL of the site where the file is located
-f, --url [url]
- The server-relative URL of the file to retrieve. Specify either
url
orid
but not both -i, --id [id]
- The UniqueId (GUID) of the file to retrieve. Specify either
url
orid
but not both -t, --type [type]
- Type of the check in. Available values
Minor,Major,Overwrite
. Default is Major --comment [comment]
- Comment to set when checking the file in. It\'s length must be less than 1024 letters. Default is empty string
-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
--verbose
- Runs command with verbose logging
--debug
- Runs command with debug logging
Examples¶
Checks in file with UniqueId b2307a39-e878-458b-bc90-03bc578531d6 located in site https://contoso.sharepoint.com/sites/project-x
m365 spo file checkin --webUrl https://contoso.sharepoint.com/sites/project-x --id 'b2307a39-e878-458b-bc90-03bc578531d6'
Checks in file with server-relative url /sites/project-x/documents/Test1.docx located in site https://contoso.sharepoint.com/sites/project-x
m365 spo file checkin --webUrl https://contoso.sharepoint.com/sites/project-x --url '/sites/project-x/documents/Test1.docx'
Checks in minor version of file with server-relative url /sites/project-x/documents/Test1.docx located in site https://contoso.sharepoint.com/sites/project-x
m365 spo file checkin --webUrl https://contoso.sharepoint.com/sites/project-x --url '/sites/project-x/documents/Test1.docx' --type Minor
Checks in file /sites/project-x/documents/Test1.docx with comment located in site https://contoso.sharepoint.com/sites/project-x
m365 spo file checkin --webUrl https://contoso.sharepoint.com/sites/project-x --url '/sites/project-x/documents/Test1.docx' --comment 'approved'