Versions Compared

Key

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

This article explains how to add a page as child page of an existing page using the Confluence CLI app.

Instructions

Use the addPageaddPage action to add a new page.  addPage action is used to create a page as a child page and place it under a parent page in a the specified space.

Run the

...

following CLI action command that creates a new page under a specific parent page:

Code Block
languagetext
themeMidnight
--action addPage --space "TAS" --title "Test-child" --content "This is a test page." --parent "Test-parent"

...

For this example, the CLI action

...

creates

...

the Test-child

...

 page under the parent

...

Test-parent

...

 page as shown

...

:
Image Modified

The following parameters are used in the above action:

  • space -

...

  •  the space key where the new page is

...

  • to be created.
  • title -

...

  • the title

...

  • of the child page. 
  • content -

...

  •  the content

...

  • for the page

...

  • that is created.
  • parent -

...

  • the parent page name

...

  • that exists in the space already.