The page copy command can be used to create a copy from an existing page. This is useful when using page templates.
Allows you to copy a modern page from an existing page or template.
| 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 |
Great suggestion! 馃憦
Great suggestion! 馃憦馃徎
Maybe something to consider as an enhancement but as it's easy to go cross site with the CLI and not have to re-authenticate we could add sourceUrl and targetUrl options which take absolute paths.
@garrytrinder that is also an option. Shall we change targetName to targetUrl? That can be relative or absolute. This way, you can copy it to the same site, or another site.
Sounds like a plan 馃憤馃徎
I'll do the change
Most helpful comment
I'll do the change