Skip to content

cp

FunctionCopy or copy-and-rename pages. cp src1 src2 … dest copies several sources under an existing destination.
Options-n, --dry-run — preview copies and report conflicts without creating pages.
LimitationsPages only; same space only. If some sources fail, successful copies are kept.

With two arguments, an existing destination is the new parent. If the destination does not exist and contains no /, the source is copied as a sibling with that title.

$ cp ./pageA ./folder
$ cp OldName NewName
$ cp pageA pageB ./folder
$ cp --dry-run pageA pageB ./folder