---
title: "Action script examples - Create template space script"
canonical: "https://support.appfire.com/space/ACLI/60563865/Action%20script%20examples%20-%20Create%20template%20space%20script"
format: markdown
---
> Macro (aura-html)

| Action | run |
| --- | --- |
| Description | Run a script that has both Jira and Confluence actions. |
| Command | ```
acli bobswift9 -a run --field "name=Template" 
--input "-a addSpace --space @name@ --continue" 
--input "-a storePage --space @space@ --title \"Users Guide\" --parent @home --content {children}" 
--input "-a storePage --space @space@ --title \"Get Started\" --parent @pageId@ --content xxx" 
--input "-a storePage --space @space@ --title \"Administratorss Guide\" --parent @home --content {children}" 
--input "-a storePage --space @space@ --title \"Release Notes\" --parent @home --content {children}"
``` |

```



Run: -a addSpace --space Template --continue
Space with key Template already exists with name 'Template'. Ignore.

Run: -a storePage --space Template --title "User's Guide" --parent @home --content {children}
Page updated as 'User''s Guide' in space Template as child of 'Home'. Page has id 486801541.

Run: -a storePage --space Template --title "Get Started" --parent 486801541 --content xxx
Content has not changed. Page is 'Get Started' in space Template as child of 'User's Guide'. Page has id 486932490.

Run: -a storePage --space Template --title "Administrators's Guide" --parent @home --content {children}
Page updated as 'Administrators''s Guide' in space Template as child of 'Home'. Page has id 486932499.

Run: -a storePage --space Template --title "Release Notes" --parent @home --content {children}
Page updated as 'Release Notes' in space Template as child of 'Home'. Page has id 486801549.

Run completed successfully. 5 actions were successful from input parameters.

```