Skip to content

New command: spo file checkout undo #4926

@milanholemans

Description

@milanholemans

Usage

m365 spo file checkout undo [options]

Description

Discards a checked out file

Options

Option Description
-u, --webUrl <webUrl> The URL of the site where the file is located.
-f, --fileUrl [fileUrl] The server- or site-relative URL of the file to retrieve. Specify either fileUrlor fileId but not both.
-i, --fileId [fileId] The UniqueId (GUID) of the file to retrieve. Specify either fileUrl or fileId but not both.
--confirm Don't prompt for confirmation.

Examples

Discards a checked-out file with a specific ID.

m365 spo file checkout undo --webUrl https://contoso.sharepoint.com/sites/project-x --fileId 'b2307a39-e878-458b-bc90-03bc578531d6'

Discards a checked-out file with a specific URL.

m365 spo file checkout undo --webUrl https://contoso.sharepoint.com/sites/project-x --fileUrl'/sites/project-x/documents/Test1.docx'

Default properties

No response

Additional Info

No response

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions