New command: Move a file to a different location
See original GitHub issueMove a file to another location
command: spo file move -u|--webUrl <webUrl> -s|--sourceUrl <sourceUrl> -t|--targetUrl <targetUrl> --deleteIfAlreadyExists
- webUrl: The URL of the site where the file is located
- sourceUrl: Site-relative URL of the file to move
- targetUrl: Server-relative URL where to move the file
- deleteIfAlreadyExists: 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
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:17 (17 by maintainers)
Top Results From Across the Web
Moving file using cmd? [closed] - Stack Overflow
To move a file, you use the move command. move "%USERPROFILE%\Downloads\Test.exe" "%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start ...
Read more >MS-DOS and Windows Command Line Move Command
The move command allows users to transfer files or directories from one directory to another, or from one drive to another.
Read more >move cmd command - GeeksforGeeks
The move is an internal command found in the Windows Command Interpreter (cmd) that is used to move files and folders/directories.
Read more >Classic SysAdmin: How to Move Files Using Linux Commands ...
From the pop-up menu (Figure 1) select the “Move To” option. When the Select Destination window opens, navigate to the new location for...
Read more >Move files in the Linux terminal | Opensource.com
Use the mv command to move a file from one location to another. ... To move a file on a computer with a...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

No deadlines! You’re ready when you’re ready 😄
Ideally, that should be it. You can have a look at my blog notes if there is anything more to be done https://blog.velingeorgiev.com/createcopyjobs-api-copy-move-SharePoint-files-folders
I would suggest to have
--ignoreVersionHistoryparam in the command so let the admin decide if they want to move the history. Defaults to true