Versions Compared

Key

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

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

Instructions

Use the addPage action to add a new page. For this example, action  addPage is  action is used to create a page as a child page and place it under a parent page in a space.

...

.

...

  1. Screenshot of the sample space with test pages created is below:
    Image Removed

    Run the below 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"


    As a result of the CLI action, it creates the page "Test-child" under the parent page "Test-parent" as shown below:
    Image Added




    The following parameters are used in the above action:

    • space - Specify the space key where the new page is going to be created.
    • title - Specify a title to the child page. 
    • content - Specify your content to the page while it gets created.
    • parent - Specify the parent page name which is existing in the space already.
    As a result of the CLI action, it creates the page "Test-child" under the parent page "Test-parent" as shown below:
    Image Removed