Skip to content

New command: spo file rename #1763

@Chuckler22

Description

@Chuckler22

Usage

spo file rename [options]

Description

Renames a file

Options

Option Description
-u, --webUrl <webUrl> The URL of the site where the file is located
-s, --sourceUrl <sourceUrl> Site-relative URL of the file to rename
-t, --targetFilename <targetFilename> New Filename for the file to be renamed
--force If a file already exists at the targetUrl, it will be moved to the recycle bin. If omitted, the move operation will be canceled if the file already exists at the targetUrl location

Additional Information

This could also be done with "spo file copy" if the
-t, --targetUrl | Server-relative URL where to copy the file
could include a new filename.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions