This article explains how to add a page as child page of an existing page using Confluence CLI app.
Instructions
Use the addPage 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 space.
Run the below CLI action command that creates a new page under a specific parent page:
As a result of the CLI action, it creates the page "Test-child" under the parent page "Test-parent" as shown below:--action addPage --space "TAS" --title "Test-child" --content "This is a test page." --parent "Test-parent"
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.