New command: `spo page copy` to be able to create a page from an existing one
See original GitHub issueUsage
The page copy command can be used to create a copy from an existing page. This is useful when using page templates.
Description
Allows you to copy a modern page from an existing page or template.
Options
Option | Description |
---|---|
--sourceName <sourceName> |
Name of the source file |
--targetName <targetName> |
Name of the target file to be created |
--webUrl |
The URL of the site |
--overwrite |
Overwrite the target page when it already exists |
--verbose |
Runs command with verbose logging |
--debug |
Runs command with debug logging |
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:5 (5 by maintainers)
Top Results From Across the Web
3 Easy Steps to Replicate SharePoint Pages - Intranetbee
Save an existing page as a Template · Use the Copy command to copy the page to the Templates Folder · Open the...
Read more >Create and use modern pages on a SharePoint site
Select + New, and then select Page. ... Alternately, you can go to an existing page, select + New, and select Page. Or,...
Read more >How to copy pages in SharePoint Online
Click the checkbox next to the page you want to copy (you can also right-click) and choose Copy to. On the side panel,...
Read more >How to Duplicate Pages in SharePoint Online (2022 Update)
Method #1: Copy to option from the command bar · Method #2: Copy of this page option from the new button · Method...
Read more >How to Copy Pages in SharePoint Online Easily? - YouTube
Today, we will be demonstrating the capability of copying pages in Dock Intranet Portal/SharePoint Online.Please note that this works only ...
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
I’ll do the change
@garrytrinder that is also an option. Shall we change
targetName
totargetUrl
? That can be relative or absolute. This way, you can copy it to the same site, or another site.