Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This article explains how to rename pages having colon (:) in the title using Confluence Command Line Interface (CLI) app.

Instructions

To rename a single page title in a space, execute the following command:

Code Block
--action renamePage --space "ATAM" --title "Bob:1" --findReplace ":#" --special " #" --replace

To rename all the page titles in a space, execute the following command:

Code Block
--action runFromPageList --space "ATAM" --common '--action renamePage --space "ATAM" --title "@title@" --findReplace ":#" --special " #" --replace' --continue

The parameters and actions used in the above commands are:

  • renamePage action renames the page.

  • space value refers to the space key.

  • title value acts as a substitution variable.

  • runFromPageList runs action for each page from a page list.

  • findReplace finds and replaces the matching text with find and replace values.

  • replace parameter replaces exiting entities with new.

  • continue parameter continues processing even after errors are encountered.

Info

Here # is used as special character and can be replaced with any special character.