Action usage examples

Examples give users ideas on actual usage. We use automation to generate, test, and run these actions, so names and combinations may be odd or repetitive (wink). In many cases, other actions or environmental setup is required for the action to run, so you will need to adjust the action parameters and setup appropriate for your environment. 

Command line environments can be different, especially between Windows and non-Windows systems. Our Tips page talks about command line escaping differences and there are differences with respect to environment variable references ($ for non-Windows and %...% for Windows). These differences can impact examples, so recognize and adjust for your platform. In particular, all examples here are run with the standard bash shell on Linux.



addAttachment

--action addAttachment --space "zcliattachments" --title "@home" --file "./src/itest/confluence/resources/data.txt" --name "large.zip"
--action addAttachment --space "zcliattachments" --title "@home" --file "./src/itest/confluence/resources/data.txt" --name "xxx.txt" --minor
--action addAttachment --space "zcliattachments" --title "@home" --file "./src/itest/confluence/resources/empty.txt"
--action addAttachment --space "zcliattachments" --title "@home" --name "empty.txt"
--action addAttachment --space "zcliattachments" --title "attachment page" --content "attachment content" --name "data.txt" --comment "attachment comment"
--action addAttachment --space "zcliattachments" --title "attachment page" --file "./src/itest/confluence/resources/binary.bin"
--action addAttachment --space "zcliattachments" --title "attachment page" --file "./src/itest/confluence/resources/data.txt" --comment "attachment comment" --verbose
--action addAttachment --space "zcliattachmentversions" --title "@home" --file "./src/itest/confluence/resources/picture.png"
--action addAttachment --space "zcliattachmentversions" --title "@home" --name "hexFile" --encoding "hex_string" --file "-"
--action addAttachment --space "zcliattachmentversions" --title "@home" --name "hexString" --encoding "hex_string" --content "\\x 31 32 33 34"
--action addAttachment --space "zcliattachmentversions" --title "@home" --name "hexString2" --encoding "hex_string" --content "31323334"
--action addAttachment --space "zcliattachmentversions" --title "@home" --name "remove.txt" --content "text - 1" --comment "version-1"
--action addAttachment --space "zcliattachmentversions" --title "@home" --name "remove.txt" --content "text - 2" --comment "version-2"
--action addAttachment --space "zcliattachmentversions" --title "history" --name "remove.txt" --labels "labels1 labels2" --content "text - 1" --comment "version-1"
--action addAttachment --space "zcliattachmentversions" --title "history" --name "remove.txt" --labels "labels1 labels2" --content "text - 2" --comment "version-2"
--action addAttachment --space "zcliattachmentversions" --title "history" --name "remove.txt" --labels "labels1 labels2" --content "text - 3" --comment "version-3"
--action addAttachment --space "zcliattachmentversions" --title "history" --name "remove.txt" --labels "labels1 labels2" --content "text - 4" --comment "version-4"
--action addAttachment --space "zcliattachmentversions" --title "history" --name "remove.txt" --labels "labels1 labels2" --content "text - 5" --comment "version-5"
--action addAttachment --space "zcliattachmentversions" --title "history" --name "remove.txt" --labels "labels1 labels2" --content "text - 6" --comment "version-6"
--action addAttachment --space "zcliblogs" --title "addBlog1" --file "./src/itest/confluence/resources/data.txt" --content "This is a test blog." --dayOfMonth 1 --month 2 --year 2020
--action addAttachment --space "zclipages" --title "This is title 0" --content "attachment content" --name "data.txt"
--action addAttachment --space "zclishortcuts" --title "@home" --name "test.txt" --content "For shortcut to an attachment"
--action addAttachment --space "zconfluencecli" --title "@home" --file "./src/itest/confluence/resources/data.txt"
--action addAttachment --space "zconfluencecli" --title "This is title 0" --content "attachment content" --name "data.txt"
--action addAttachment --space "zpublish" --title "@home" --file "./src/itest/confluence/resources/picture.png"

addAttachments

--action addAttachments --space "zcliattachmentversions" --title "addAttachmentsPage" --file "./src/itest/confluence/resources" --regex "recursive.*\\.txt" --recursive
--action addAttachments --space "zcliattachmentversions" --title "addAttachmentsPage" --file "./src/itest/confluence/resources" --regex "run.*\\.txt" --labels "labels1 labels2"
--action addAttachments --space "zcliattachmentversions" --title "addAttachmentsPage" --file "./src/itest/confluence/resources" --regex "xxxxxxxxx"
--action addAttachments --space "zcliattachmentversions" --title "addAttachmentsPage" --file "./src/itest/confluence/resources/run.sql" --regex "run.*" --mime "sql"

addBlog

--action addBlog --space "zcliblogs" --title "addBlog1" --content "This is a test blog." --content2 "link: [google|http://google.com]" --dayOfMonth 1 --month 2 --year 2020 --labels "blog"
--action addBlog --space "zcliblogs" --title "addBlog1" --content "This is a test blog." --year 2010
--action addBlog --space "zconfluencecli" --title "addBlog1" --content "This is a test blog."

addComment

--action addComment --id "417104228" --comment "Threaded comment"
--action addComment --space "zcliblogs" --title "addBlog1" --comment "Test content with wiki (/)" --dayOfMonth 1 --month 2 --year 2020
--action addComment --space "zclipages" --title "@home" --comment "{tip} Comment 1 * bullet 1 {tip}"
--action addComment --space "zconfluencecli" --title "This is title 0" --comment "Comment 2"

addGroup

--action addGroup --group "testgroup1"

addLabels

--action addLabels --labels "data2,txt2" --id "417104187"
--action addLabels --space "zcliattachments" --title "attachment page" --name "data.txt" --labels "data,txt"
--action addLabels --space "zclipages" --title "This is title 0" --labels "testLabel1, testLabel2"
--action addLabels --space "zconfluencecli" --labels "cli, cli2"
--action addLabels --space "zconfluencecli" --title "This is title 0" --labels "testLabel1, testLabel2"

addPage

--action addPage --space "zclipages" --title "This is title 0" --content "This is a test page." --continue
--action addPage --space "zclipages" --title "This is title 0" --content "This is a test page." --parent "Home"
--action addPage --space "zclipermissions" --title "child1" --parent "children"
--action addPage --space "zclipermissions" --title "child1-1" --parent "child1"
--action addPage --space "zclipermissions" --title "child1-2" --parent "child1"
--action addPage --space "zclipermissions" --title "child2" --parent "children"
--action addPage --space "zclipermissions" --title "child2-1" --parent "child2"
--action addPage --space "zclipermissions" --title "multipleUsers" --parent "@home"
--action addPage --space "zconfluencecli" --title "This is title 0" --content "This is a test page." --parent "Home"

addPermissions

--action addPermissions --permissions "edit" --group "confluence-administrators" --id "417104164"
--action addPermissions --permissions "edit" --group "confluence-administrators" --id "417104482"
--action addPermissions --space "zclipermissions" --group "confluence-users" --permissions "viewspace,editspace,setpagepermissions,removepage,editblog,removeblog,comment,removecomment,createattachment,removeattachment,exportspace"
--action addPermissions --space "zclipermissions" --title "children" --permissions "edit" --descendents --userId "automation"
--action addPermissions --space "zclipermissions" --title "children" --permissions "edit" --userId "admin"
--action addPermissions --space "zclipermissions" --title "multipleUsers" --permissions "edit" --userId "admin,automation"
--action addPermissions --space "zclipermissions" --userId "clipermissions" --permissions "@all"
--action addPermissions --space "zclipermissions" --userId "clipermissions" --permissions "VIEWSPACE"
--action addPermissions --space "zclipermissions2" --group "confluence-administrators" --permissions "viewspace,editspace,setpagepermissions,removepage,exportspace"
--action addPermissions --space "zclipermissionsTarget014302" --userId "admin" --permissions "viewspace,editspace"
--action addPermissions --space "zclipermissionsTarget462480" --userId "admin" --permissions "viewspace,editspace"
--action addPermissions --space "zclispaces4" --permissions "@all" --group "confluence-administrators"
--action addPermissions --space "zconfluencecli" --permissions "VIEWSPACE,EXPORTSPACE" --userId "user"
--action addPermissions --space "zconfluencecli" --title "viewRestricted" --permissions "view" --userId "developer"

addQuestion

--action addQuestion --title "zquestions_100 with some special characters < - + ( ) @ # $ & % ^ *" --topic "zquestions_1" --content "xxx"

addQuestionWatch

--action addQuestionWatch --title "@ALL"
--action addQuestionWatch --title "zquestions_100 with some special characters < - + ( ) @ # $ & % ^ *"

addShortcut

--action addShortcut --space "zclishortcuts" --id "417103969"
--action addShortcut --space "zclishortcuts" --name "Shortcut 1" --url "https://google.com"
--action addShortcut --space "zclishortcuts" --title "@home"
--action addShortcut --space "zclishortcuts" --url "https://google.com"

addSpace

--action addSpace --home "My home" --userId "developer" --description "Space description YYY"
--action addSpace --space "zclispaces4" --name "zclispaces with blueprint" --description "blueprint" --blueprint "Team space"

addTopic

--action addTopic --name "zquestions_1" --replace
--action addTopic --name "zquestions_2" --description "Some nice description" --featured --avatar "https://bobswift.atlassian.net/wiki/download/thumbnails/20054081/CLI-Icon-Round-72px.png"
--action addTopic --name "zquestions_3" --description "Some nice description" --featured --avatar "https://bobswift.atlassian.net/wiki/download/thumbnails/20054081/CLI-Icon-Round-72px.png"
--action addTopic --name "zquestions_Last" --replace

addTopicWatch

--action addTopicWatch --topic "zquestions_1"

addUser

--action addUser --userId "testuser1" --userFullName "Test User1" --userEmail "testuser1x@examplegear.com" --continue --userPassword "***"
--action addUser --userId "testuser2" --userEmail "testuser2@examplegear.com" --continue --group "testgroup1"
--action addUser --userId "testuser3" --userEmail "testuser3@examplegear.com" --continue
--action addUser --userId "user encode" --userEmail "testuser1@examplegear.com" --userPassword "***" --continue

addUserPicture

--action addUserPicture --file "./src/itest/confluence/resources/picture.png" --userId "testuser2"

addUserToGroup

--action addUserToGroup --userId "testuser3" --group "testgroup2" --autoGroup --verbose
--action addUserToGroup --userId "testuser3" --group "testgroup2" --continue
--action addUserToGroup --userId "user encode" --group "confluence-administrators"

addWatch

--action addWatch --space "zcliwatch"
--action addWatch --space "zcliwatch" --title "@home" --userId "user encode cli" --descendents
--action addWatch --space "zcliwatch" --title "watch1" --userId "user encode cli"

addWebhook

--action addWebhook --name "zwebhooks1" --events "page_created,page_deleted,page_updated" --url "https://examplegear.com/acli"
--action addWebhook --name "zwebhooks1" --url "https://examplegear.com/acli" --events "BAD"
--action addWebhook --name "zwebhooks2" --events "page_created,page_deleted,page_updated" --url "https://examplegear.com/acli" --options "disable" --options "secret=abcdefghi"

convertToStorageFormat

--action convertToStorageFormat --content "{@macroName@:param1=xxxxx}bodyText{@macroName@}" --findReplace "@macroName@:wiki"
--action convertToStorageFormat --content "{wiki:param1=xxxxx}" --file "-" --content2 "{wiki}"
--action convertToStorageFormat --content "{wiki:param1=xxxxx}bodyText" --content2 "{wiki}"
--action convertToStorageFormat --content "γƒ†γ‚Ήγƒˆγƒ†γ‚Ήγƒˆ testtest 今ζ—₯明ζ—₯明後ζ—₯ あああああ testaaaaaaaaaaaaaaa οΌ‘οΌ’οΌ“οΌ”οΌ•οΌ–"

copyAttachment

--action copyAttachment --space "zcliattachmentversions" --title "@home" --name "picture.png" --newTitle "addAttachmentsPage"

copyAttachments

--action copyAttachments --space "zcliattachmentversions" --title "@home" --newTitle "addAttachmentsPage"
--action copyAttachments --space "zclispaces" --title "This is title" --targetServer "http://confluence.examplegear.com" --targetUser "automation" --newSpace "zclispacesTarget390758" --newTitle "This is a new title" --verbose --regex "data.*"
--action copyAttachments --targetServer "http://confluence.examplegear.com" --targetUser "automation" --id "417103981" --newSpace "zclispacesTarget390758" --newTitle "This is a new title" --regex "xxx.*"

copyBlog

--action copyBlog --space "zcliblogs" --title "addBlog1" --newTitle "copyBlog1" --replace --dayOfMonth 1 --month 2 --year 2020 --toMonth 3
--action copyBlog --space "zcliblogs" --title "addBlog1" --newTitle "copyBlogRetainPostingDate" --replace --commentPrefix "Original creator: @creator@ <br/> Source space: @space@ <br/> Source title: @title@ <br/> Source time created: @createdTime@ <br/> "
--action copyBlog --space "zcliblogs" --title "addBlog1" --newTitle "copyBlogWithCommentsAndAttachments" --replace --copyComments --copyAttachments --copyLabels

copyComments

--action copyComments --space "zclipages" --title "@home" --newTitle "This is title 0"

copyLabels

--action copyLabels --space "zclipages" --title "This is title 0" --newTitle "labels"

copyPage

--action copyPage --id "417104289" --newTitle "This is a new title 3" --parent "@home" --replace
--action copyPage --id "417104289" --newTitle "This is a new title 4" --parent "417104289" --replace
--action copyPage --space "zcliattachments" --title "attachment page" --newTitle "attachment pagecopy" --copyAttachments --replace
--action copyPage --space "zclipages" --title "@home" --newTitle "This is a new title 0" --continue
--action copyPage --space "zclipages" --title "Home" --newSpace "zclipagesA" --newTitle "XXX" --parent "@home" --replace --children
--action copyPage --space "zclipages" --title "Home" --newTitle "AAA@title@BBB" --parent "@home" --replace --descendents
--action copyPage --space "zclipages" --title "Home" --newTitle "This is new title 1" --newSpace "zclipagesA" --parent "@home" --replace --descendents --copyAttachments --copyComments --copyLabels --copyPermissions
--action copyPage --space "zclipages" --title "This is title 0" --newTitle "This is a new title 0" --parent "Home" --replace
--action copyPage --space "zclipages" --title "This is title 0" --newTitle "labels" --parent "@home" --content "Page for labels" --replace
--action copyPage --space "zclipages" --title "This is title 0" --newTitle "newReplace" --replaceTitle "replace" --replace
--action copyPage --space "zclipages" --title "template" --newTitle "template copy" --parent "template" --findReplace "\$VAR1\$#value for variable 1" --findReplace "%VAR2%#value for variable 2" --findReplace "(VAR3)#value for variable 3" --special " #" --replace
--action copyPage --space "zclipermissions" --title "children" --targetServer "http://confluence.examplegear.com" --targetUser "automation" --newSpace "zclipermissionsTarget014302" --copyPermissions --replace --children --verbose
--action copyPage --space "zclipermissions" --title "children" --targetServer "http://confluence.examplegear.com" --targetUser "automation" --newSpace "zclipermissionsTarget462480" --copyPermissions --replace --children --verbose
--action copyPage --space "zclispaces" --title "This is title" --targetServer "http://confluence.examplegear.com" --targetUser "automation" --newTitle "This is a new title" --newSpace "zclispacesTarget390758" --replace --copyAttachments --copyComments --copyLabels --commentPrefix "Creator: @creator@, space: @space@, title: @title@, time: @createdTime@" --noConvert
--action copyPage --space "zmisc" --title "csoap-523" --newTitle "csoap-523 copy" --parent "@home" --replace --topic "rest"

copyPageChildren

--action copyPageChildren --id "417104289" --newTitle "This is a new title 4" --parent "417104289" --replace
--action copyPageChildren --space "zclipages" --title "Home" --newSpace "zclipagesA" --parent "This is a new title 2" --replace --descendents --copyComments --copyLabels
--action copyPageChildren --space "zclipagesh1" --title "AAA" --newSpace "zclipagesh2" --replace

copyPermissions

--action copyPermissions --space "zclipermissions" --newSpace "zclipermissions2"
--action copyPermissions --space "zclipermissions" --newSpace "zclipermissions2" --append
--action copyPermissions --space "zclipermissions" --targetServer "http://confluence.examplegear.com" --targetUser "automation" --newSpace "zclipermissionsTarget014302"
--action copyPermissions --space "zclipermissions" --targetServer "http://confluence.examplegear.com" --targetUser "automation" --newSpace "zclipermissionsTarget014302" --mergePermissions
--action copyPermissions --space "zclipermissions" --targetServer "http://confluence.examplegear.com" --targetUser "automation" --newSpace "zclipermissionsTarget462480"
--action copyPermissions --space "zclipermissions" --targetServer "http://confluence.examplegear.com" --targetUser "automation" --newSpace "zclipermissionsTarget462480" --mergePermissions
--action copyPermissions --space "zclipermissions" --title "children" --targetServer "http://confluence.examplegear.com" --targetUser "automation" --newSpace "zclipermissionsTarget014302"
--action copyPermissions --space "zclipermissions" --title "children" --targetServer "http://confluence.examplegear.com" --targetUser "automation" --newSpace "zclipermissionsTarget462480"

copySpace

--action copySpace --space "zclipermissions" --targetServer "http://confluence.examplegear.com" --targetUser "automation" --newSpace "zclipermissionsAnotherTarget014302" --name "zclipermissionsAnotherTarget014302" --description "copied space" --replace --verbose --copyPermissions --mergePermissions
--action copySpace --space "zclipermissions" --targetServer "http://confluence.examplegear.com" --targetUser "automation" --newSpace "zclipermissionsAnotherTarget462480" --name "zclipermissionsAnotherTarget462480" --description "copied space" --replace --verbose --copyPermissions --mergePermissions
--action copySpace --space "zclipermissions" --targetServer "http://confluence.examplegear.com" --targetUser "automation" --newSpace "zclipermissionsTarget014302" --name "zclipermissionsTarget014302" --description "copied space" --replace --descendents
--action copySpace --space "zclipermissions" --targetServer "http://confluence.examplegear.com" --targetUser "automation" --newSpace "zclipermissionsTarget462480" --name "zclipermissionsTarget462480" --description "copied space" --replace --descendents
--action copySpace --space "zclispaces" --newSpace "zclispaces3" --copyCategories --description "copied space"
--action copySpace --space "zclispaces" --targetServer "http://confluence.examplegear.com" --targetUser "automation" --newSpace "zclispaces3Target390758" --continue --replace
--action copySpace --space "zclispaces" --targetServer "http://confluence.examplegear.com" --targetUser "automation" --newSpace "zclispaces3Target390758" --name "zclispaces3Target390758" --replace --copyBlogs --copyAttachments --copyComments --copyLabels
--action copySpace --space "~developer" --targetServer "http://confluence.examplegear.com" --targetUser "automation" --replace

exportData

--action exportData --space "zconfluencecli" --exportType "groups"
--action exportData --space "zconfluencecli" --exportType "participants"
--action exportData --space "zconfluencecli" --exportType "users"
--action exportData --space "zconfluencecli" --exportType "users" --options "includeGroups"
--action exportData --space "zconfluencecli" --exportType "users" --regex "(?i).*developer.*"
--action exportData --space "zconfluencecli" --file "output/export/exportDataSpace.txt"

exportPage

--action exportPage --file "output/cliblogs" --id "417104071" --options "addAttachment"
--action exportPage --space "zcliblogs" --title "addBlog1" --file "output/cliblogs" --dayOfMonth 1 --month 2 --year 2020
--action exportPage --space "zconfluencecli" --title "@home" --file "."
--action exportPage --space "zconfluencecli" --title "@home" --file "@default"
--action exportPage --space "zconfluencecli" --title "@home" --file "@default" --options "addAttachment"
--action exportPage --space "zconfluencecli" --title "@home" --file "@default" --options "addAttachment" --newSpace "zconfluencecliExport2"
--action exportPage --space "zconfluencecli" --title "@home" --file "output/export" --children
--action exportPage --space "zconfluencecli" --title "@home" --file "output/export" --options "addAttachment"
--action exportPage --space "zconfluencecli" --title "@home" --file "output/export" --options "addAttachment" --children
--action exportPage --space "zconfluencecli" --title "Special: &" --file "output/export"
--action exportPage --space "zconfluencecli" --title "viewRestricted" --file "output/export" --descendents
--action exportPage --space "zconfluencecli" --title "viewRestricted" --file "output/export/exportPage.pdf"

exportSpace

--action exportSpace --space "zconfluencecli" --file "output/export/exportSpaceHtml.zip" --exportType "HTML"
--action exportSpace --space "zconfluencecli" --file "output/export/exportSpaceXml.zip"
--action exportSpace --space "zconfluencecli" --file "output/export/exportSpacepdf.txt" --exportType "PDF"
--action exportSpace --space "zconfluencecli" --title "@home" --file "output/export/exportSpacepageHierarchypdf.txt" --exportType "PDF" --options "addPageNumbers"

getApp

--action getApp --app "@default"
--action getApp --app "org.swift.confluence.html"

getApplicationLinkList

--action getApplicationLinkList
--action getApplicationLinkList --outputFormat 999

getAttachment

--action getAttachment --file "output/cliattachments/binary.bin" --id "417104183"
--action getAttachment --space "zcliattachments" --title "@home" --file "output/cliattachments/large.zip" --name "417104221"
--action getAttachment --space "zcliattachments" --title "attachment page" --file "output/cliattachments/getAttachmentWithVersion.txt" --name "data.txt" --version 1
--action getAttachment --space "zcliattachments" --title "attachment pagecopy" --file "output/cliattachments/data.txt"
--action getAttachment --space "zcliattachmentversions" --title "@home" --name "hexFile" --file "-" --quiet
--action getAttachment --space "zcliattachmentversions" --title "@home" --name "hexString" --file "-"
--action getAttachment --space "zcliattachmentversions" --title "@home" --name "hexString2" --file "-"
--action getAttachment --space "zclipagesA" --title "This is title 0" --file "output/clipages/data.txt"

getAttachmentList

--action getAttachmentList --cql "space=zcliattachments and title='attachment page'" --outputFormat 2
--action getAttachmentList --id "417104183"
--action getAttachmentList --id "417104183" --outputFormat 2
--action getAttachmentList --space "@all" --limit 10
--action getAttachmentList --space "zcliattachments"
--action getAttachmentList --space "zcliattachments" --outputFormat 2
--action getAttachmentList --space "zcliattachments" --outputFormat 2 --regex ".*attachment comment.*"
--action getAttachmentList --space "zcliattachments" --outputFormat 2 --regex ".*data\\..*"
--action getAttachmentList --space "zcliattachments" --outputFormat 2 --regex ".*xxxxxxxxxx.*"
--action getAttachmentList --space "zcliattachments" --title "attachment page"
--action getAttachmentList --space "zcliattachmentversions" --title "@home" --regex "remove.txt"
--action getAttachmentList --space "zcliattachmentversions" --title "addAttachmentsPage" --columns "Title,Id,Created,Content Type" --dateFormat "yyyy-MM-dd HH:mm:ss.mmm"
--action getAttachmentList --space "zclispaces3Target390758" --title "This is title"
--action getAttachmentList --space "zclispacesTarget390758" --title "This is a new title"

getAttachmentVersionList

--action getAttachmentVersionList --space "zcliattachmentversions" --title "@home" --name "bulk.txt"
--action getAttachmentVersionList --space "zcliattachmentversions" --title "history" --name "remove.txt" --dateFormat "yyyy-MM-dd HH:mm:ss.S"

getAuditLogList

--action getAuditLogList --options "search=Spaces" --dateFormat "yyyy-MM-dd_HH:mm"

getBlogList

--action getBlogList --space "zcliblogs"
--action getBlogList --space "zcliblogs" --outputFormat 999 --dateFormat "yyyy-MM-dd"
--action getBlogList --space "zclispaces3Target390758" --dateFormat "yyyy-MM-dd" --columns "created,url" --outputType "text"

getBlogSource

--action getBlogSource --id "417104071"
--action getBlogSource --space "zcliblogs" --title "addBlog1" --dayOfMonth 1 --month 2 --year 2020

getClientInfo

--action getClientInfo

getCommentList

--action getCommentList --space "zconfluencecli" --title "This is title 0"
--action getCommentList --space "zconfluencecli" --title "This is title 0" --dateFormat "yyyy-MM-dd HH:mm:ss"
--action getCommentList --space "zconfluencecli" --title "This is title 0" --dateFormat "yyyy-MM-dd HH:mm:ss" --outputFormat 2
--action getCommentList --space "zconfluencecli" --title "This is title 0" --dateFormat "yyyy-MM-dd HH:mm:ss" --outputFormat 2 --regex ".*?Comment 2.*?"

getComments

--action getComments --space "zclipagesA" --title "This is title 0" --dateFormat "yyyy.MM.dd HH:mm:ss z"
--action getComments --space "zclispacesTarget390758" --title "This is a new title"

getContent

--action getContent --id "417104187"

getContentHistoryList

--action getContentHistoryList --id "417104079" --dateFormat "yyyy-MM-dd HH:mm:ss.S"
--action getContentHistoryList --id "417104079" --dateFormat "yyyy-MM-dd"
--action getContentHistoryList --id "417104244" --dateFormat "yyyy-MM-dd" --outputFormat 999
--action getContentHistoryList --id "417104544" --dateFormat "yyyy-MM-dd HH:mm:ss.S"
--action getContentHistoryList --id "417104544" --dateFormat "yyyy-MM-dd"
--action getContentHistoryList --space "zcliblogs" --title "addBlog2" --dayOfMonth 1 --month 2 --year 2020 --dateFormat "yyyy-MM-dd"
--action getContentHistoryList --space "zhistory" --title "history" --date "2021-06-10 20:05:07.476" --dateFormat "yyyy-MM-dd HH:mm:ss.S"
--action getContentHistoryList --space "zhistory" --title "history" --date "2021-06-10 20:47:09.637" --dateFormat "yyyy-MM-dd HH:mm:ss.S"
--action getContentHistoryList --space "zhistory" --title "history" --dateFormat "yyyy-MM-dd HH:mm:ss.S"
--action getContentHistoryList --space "zhistory" --title "history" --dateFormat "yyyy-MM-dd" --regex "(?i).*automation.*"
--action getContentHistoryList --space "zhistory" --title "history" --dateFormat "yyyy-MM-dd" --regex "xxx"
--action getContentHistoryList --space "zhistory" --title "history" --regex2 ".*for: ((1)|(2)).*" --outputFormat 999 --dateFormat "yyyy-MM-dd"

getContentList

--action getContentList --cql "type=page and space=zconfluencecli" --limit 1 --dateFormat "yyyy-MM-dd"
--action getContentList --file "output/search/getContentListCqlAllPages.txt" --cql "type=page" --dateFormat "yyyy-MM-dd"

getGroupList

--action getGroupList
--action getGroupList --regex "testgroup1"
--action getGroupList --userId "@self" --outputType "text"
--action getGroupList --userId "testuser3"

getLabelList

--action getLabelList --cql "space=zcliattachments and type=attachment and title='data.txt'" --outputFormat 999
--action getLabelList --cql "space=zclipages and title='This is title 0'" --outputFormat 999
--action getLabelList --id "417104187" --outputFormat 999
--action getLabelList --id "417104286" --outputFormat 999
--action getLabelList --labels "testlabel1" --regex "testlabel.*" --limit 1
--action getLabelList --space "zclipages"
--action getLabelList --space "zclipages" --labels "testlabel1"
--action getLabelList --space "zclipages" --recentlyUsed
--action getLabelList --space "zclipages" --title "This is title 0"
--action getLabelList --space "zclipages" --title "This is title 0" --recentlyUsed
--action getLabelList --space "zclipages" --title "labels"
--action getLabelList --space "zconfluencecli" --title "This is title 0"
--action getLabelList --space "zconfluencecli" --title "This is title 0" --outputFormat 999

getPage

--action getPage --id "417104226" --options "status=trashed"
--action getPage --space "zclipages" --title "@home" --outputFormat 2
--action getPage --space "zclipages" --title "This is title 0"
--action getPage --space "zclipages" --title "This is title 1"
--action getPage --space "zclipages" --title "xxx.,<>_|~!{}[]=//&*%-+'"
--action getPage --space "zclipages2" --title "title6"
--action getPage --space "zclipages2A" --title "title5"
--action getPage --space "zclipermissions" --title "children"
--action getPage --space "zconfluencecli" --title "@home"

getPageHistoryList

--action getPageHistoryList --id "417104079" --dateFormat "yyyy-MM-dd"
--action getPageHistoryList --id "417104544" --dateFormat "yyyy-MM-dd"
--action getPageHistoryList --space "zhistory" --title "history" --date "2021-06-10 20:05:07.476" --dateFormat "yyyy-MM-dd"
--action getPageHistoryList --space "zhistory" --title "history" --date "2021-06-10 20:47:09.637" --dateFormat "yyyy-MM-dd"
--action getPageHistoryList --space "zhistory" --title "history" --dateFormat "yyyy-MM-dd HH:mm:ss.S"

getPageList

--action getPageList --cql "space=zclipages"
--action getPageList --cql "space=zclipages" --labels "NOT_FOUND" --outputFormat 3
--action getPageList --cql "space=zclipages" --outputFormat 3 --regex "(?i)Home" --regex2 "(?s).*This is a test page..*"
--action getPageList --cql "space=zclipages" --outputFormat 998 --limit 1
--action getPageList --cql "space=zclipages" --outputFormat 999
--action getPageList --cql "space=zclipages4 order by title"
--action getPageList --id "417104323" --descendents
--action getPageList --labels "testLabel" --outputFormat 3
--action getPageList --space "zclipages" --id "417104323"
--action getPageList --space "zclipages" --labels "testLabel"
--action getPageList --space "zclipages" --outputFormat 2 --regex "(?i)Home" --regex2 "NOT_FOUND"
--action getPageList --space "zclipages" --parent "@home" --descendents --outputFormat 2 --columns "title,parent id"
--action getPageList --space "zclipages" --parent "@home" --outputFormat 2 --columns "title,parent id"
--action getPageList --space "zclipages" --regex "AAA.*BBB|Home|This is title 0" --outputFormat 2
--action getPageList --space "zclipages" --regex "This .*"
--action getPageList --space "zclipages" --regex "copyhierarchy.*"
--action getPageList --space "zclipages" --title "@home"
--action getPageList --space "zclipages" --title "This is title 1" --children
--action getPageList --space "zclipages" --title "This is title 1" --children --labels "not_found , xxxx"
--action getPageList --space "zclipages" --title "This is title 1" --children --outputFormat 2 --dateFormat "yyyy-MM-dd"
--action getPageList --space "zclipages" --title "This is title 1" --descendents --columns "3, title, space" --outputFormat 999 --dateFormat "yyyy-MM-dd"
--action getPageList --space "zclipages2" --outputFormat 998 --columns "title,position"
--action getPageList --space "zclipages4" --limit 1 --dateFormat "yyyy-MM-dd" --outputFormat 2 --outputType "text" --columns 5 --append --quiet
--action getPageList --space "zclipermissions" --title "@home" --descendents --outputFormat 2
--action getPageList --space "zclipermissionsAnotherTarget014302" --outputFormat 2
--action getPageList --space "zclipermissionsAnotherTarget462480" --outputFormat 2
--action getPageList --space "zclispaces3" --outputFormat 2
--action getPageList --space "zclispacesTarget390758" --title "This is a new title" --file "output/clispaces/getPageListTargetServer.txt"

getPageSource

--action getPageSource --id "417103912"
--action getPageSource --space "zclimarkdown" --title "markdown readme with toc" --file "output/climarkdown/getPageSourceToc.txt"
--action getPageSource --space "zclimarkdown" --title "markdown readme" --file "output/climarkdown/getPageSourceMarkdownReadme.txt"
--action getPageSource --space "zclimarkdown" --title "markdown"
--action getPageSource --space "zclipages" --title "This is title 1" --file "output/clipages/getPageSource.txt"
--action getPageSource --space "zclipages" --title "This is title 8" --file "output/clipages/getPageSourceFromStandardInput.txt" --quiet
--action getPageSource --space "zclipages" --title "roundTrip" --file "output/clipages/getPageSourceRoundTrip.txt"
--action getPageSource --space "zclipages" --title "roundTrip" --file "output/clipages/getPageSourceRoundTrip2.txt"
--action getPageSource --space "zclipages" --title "template copy"
--action getPageSource --space "zclipagesA" --title "This is title 0"
--action getPageSource --space "zconfluencecli" --title "This is title 7"
--action getPageSource --space "zconfluencecli" --title "This is title 7" --quiet
--action getPageSource --space "zmisc" --title "ampersand2"
--action getPageSource --space "zmisc" --title "csoap-523 copy"
--action getPageSource --space "zpublish" --title "doctype"
--action getPageSource --space "zpublish" --title "image"
--action getPageSource --space "zpublish" --title "published2"
--action getPageSource --space "zpublish" --title "published3"
--action getPageSource --space "zpublish" --title "publishedAfterConvertCsv"
--action getPageSource --space "zpublish" --title "publishedCsvAutoNumber"
--action getPageSource --space "zpublish" --title "publishedCsvMultiple"
--action getPageSource --space "zpublish" --title "publishedDocumentation" --file "output/publish/getPageSourceDocumentation.txt"
--action getPageSource --space "zpublishTarget407476" --title "publishedFromContent"
--action getPageSource --space "zpublishTarget407476" --title "publishedFromSource"
--action getPageSource --space "zpublishTarget407476" --title "publishedReplace"
--action getPageSource --space "zpublishTarget407476" --title "publishedTargetRendering"

getPermissionList

--action getPermissionList
--action getPermissionList --space "zclipages" --title "PPP"
--action getPermissionList --space "zclipages" --title "PPP1"
--action getPermissionList --space "zclipermissions"
--action getPermissionList --space "zclipermissions" --title "children"
--action getPermissionList --space "zclipermissions" --title "children" --file "output/clipermissions/getPermissionListForChildrenAfterAnotherUser.txt"
--action getPermissionList --space "zclipermissions" --title "children" --outputFormat 2
--action getPermissionList --space "zclipermissions" --title "children" --outputFormat 2 --descendents
--action getPermissionList --space "zclipermissionsAnotherTarget014302" --title "editRestricted"
--action getPermissionList --space "zclipermissionsAnotherTarget462480" --title "editRestricted"
--action getPermissionList --space "zclipermissionsTarget014302" --title "children"
--action getPermissionList --space "zclipermissionsTarget014302" --title "children" --outputFormat 999
--action getPermissionList --space "zclipermissionsTarget014302" --title "editRestricted"
--action getPermissionList --space "zclipermissionsTarget462480" --title "children"
--action getPermissionList --space "zclipermissionsTarget462480" --title "children" --outputFormat 999
--action getPermissionList --space "zclipermissionsTarget462480" --title "editRestricted"

getQuestion

--action getQuestion --id "417104286"
--action getQuestion --title "zquestions_100 with some special characters < - + ( ) @ # $ & % ^ *" --dateFormat "yyyy-MM-dd"

getQuestionList

--action getQuestionList
--action getQuestionList --filter "recent" --topic "zquestions_1" --dateFormat "yyyy-MM-dd" --outputFormat "999"

getServerInfo

--action getServerInfo
--action getServerInfo --outputFormat 2 --dateFormat "yyyy-MM-dd HH:mm"
--action getServerInfo --outputFormat 999
--action getServerInfo --user "anonymous"
--action getServerInfo --user "testuser1" --password "***"

getShortcutList

--action getShortcutList --space "zclishortcuts"
--action getShortcutList --space "zclishortcuts" --options "main"
--action getShortcutList --space "zclishortcuts" --options "quick"
--action getShortcutList --space "zclishortcuts" --regex "/display/.*?/Home"

getSource

--action getSource --space "zcliexamples" --title "csoap-234"
--action getSource --space "zcliexamples" --title "page2" --findReplace "2:two"
--action getSource --space "zcliexamples" --title "page5" --special " #" --findReplaceRegex "(?s).*?(http[s]{0,1}://[./a-z]+)#\$1," --findReplaceRegex "(?s)((http[s]{0,1}://[./a-z]+,)*).*#\$1"
--action getSource --space "zcliexamples" --title "page5" --special " #" --findReplaceRegex "(?s).*?href=\"(http[s]{0,1}://[./a-z]+)#\$1 \\n " --findReplaceRegex "(?s)(((http[s]{0,1}://[./a-z]+)\\s)*).*#\$1"
--action getSource --space "zcliexamples" --title "page5" --special " #" --findReplaceRegex "(?s).*?href=\"(http[s]{0,1}://[./a-z]+)#\$1," --findReplaceRegex "(?s)((http[s]{0,1}://[./a-z]+,)*).*#\$1"
--action getSource --space "zclipages" --title "@home" --type "view"
--action getSource --space "zclipagesh2" --title "aa1:yyy"

getSpace

--action getSpace --space "ZCLISPACES"
--action getSpace --space "zclispaces3"
--action getSpace --space "zclispaces3Target390758"
--action getSpace --space "zclispacesTarget390758"
--action getSpace --space "zconfluencecliExport"
--action getSpace --space "~developer"

getSpaceList

--action getSpaceList
--action getSpaceList --file "output/clispaces/getSpaceListLimit.txt" --limit 1 --personal
--action getSpaceList --regex "zclispaces"
--action getSpaceList --regex2 ".*cli.*"

getSpacePermissionList

--action getSpacePermissionList --space "zclipermissions"
--action getSpacePermissionList --space "zclipermissions" --columns "Id Type, Id, Space Export, Restrictions, View" --outputType "text"
--action getSpacePermissionList --space "zclipermissions" --columns "Id Type, Id, Space Export, Restrictions, View, Pages Add, Pages Delete" --outputType "text"
--action getSpacePermissionList --space "zclipermissions2"
--action getSpacePermissionList --space "zclipermissionsAnotherTarget014302"
--action getSpacePermissionList --space "zclipermissionsAnotherTarget462480"
--action getSpacePermissionList --space "zclipermissionsTarget014302"
--action getSpacePermissionList --space "zclipermissionsTarget462480"

getTopic

--action getTopic --name "zquestions_2"
--action getTopic --topic "zquestions_1"

getTopicList

--action getTopicList
--action getTopicList --regex ".*zquestions_3"
--action getTopicList --regex "xxxxxxxx"

getTrashList

--action getTrashList --space "zclitrash"

getUser

--action getUser
--action getUser --outputType "json"
--action getUser --outputType "text"
--action getUser --userId "testuser1"

getUserList

--action getUserList
--action getUserList --group "testgroup2"
--action getUserList --group "testgroup2" --outputFormat 2
--action getUserList --outputFormat 2
--action getUserList --outputFormat 999

getWatchList

--action getWatchList --space "zcliwatch"
--action getWatchList --space "zcliwatch" --title "watch1"
--action getWatchList --space "zcliwatch" --title "watch1" --verbose
--action getWatchList --space "zcliwatch" --title "watch2"
--action getWatchList --space "zcliwatch" --title "watch2" --outputFormat 999

getWebhookList

--action getWebhookList --dateFormat "yyyy-mm-dd"

hideShortcut

--action hideShortcut --space "zclishortcuts" --name "Blog"

installApp

--action installApp --app "@default" --simulate

loadFiles

--action loadFiles --space "zmisc" --file "./src/itest/confluence/resources" --replace --continue
--action loadFiles --space "zmisc" --file "./src/itest/confluence/resources" --replace --continue --options "autoPage="
--action loadFiles --space "zmisc" --file "./src/itest/confluence/resources" --replace --noConvert --continue

login

--action login

logout

--action logout

modifyBlog

--action modifyBlog --id "417104071" --comment "modify blog by id" --findReplace "blog:blog modified"
--action modifyBlog --space "zcliblogs" --title "addBlog2" --dayOfMonth 1 --month 2 --year 2020 --comment "modify blog" --findReplace "Updated:Updated by modify."

modifyPage

--action modifyPage --id "417103912" --findReplace "http://www.test.com:8888/jira>http://jira.test.com:8888" --special ",>"
--action modifyPage --space "zcliexamples" --title "csoap-234" --special " # ~" --findReplaceRegex "(ri:content-title\\s*=~[^~]*)~(.*?>)#\$1 - xxx~\$2"
--action modifyPage --space "zclimarkdown" --title "markdown readme with toc" --content "{toc} "
--action modifyPage --space "zclimarkdown" --title "markdown" --markdown --content2 "#Text appended to the end."
--action modifyPage --space "zclimodify" --title "@home"
--action modifyPage --space "zclimodify" --title "MODIFY" --content "<ac:structured-macro ac:name='~unmigrated-inline-wiki-markup'><ac:parameter ac:name='atlassian-macro-output-type'>BLOCK</ac:parameter><ac:plain-text-body><![CDATA[{wiki:param1=xxxxx}bodyText{wiki}]]></ac:plain-text-body></ac:structured-macro>" --noConvert
--action modifyPage --space "zclimodify" --title "modify" --findReplace "content:contentXXX" --findReplace "before:beforeXXX" --findReplaceRegex "(a )(test)(.*):\$1\$3#\$2#"
--action modifyPage --space "zmisc" --title "ampersand" --findReplace "XXX:&"

movePage

--action movePage --id "417103965" --parent "title3"
--action movePage --newSpace "zclipages2" --id "417103966" --parent "@home"
--action movePage --space "zclipages2" --title "title4" --parent "title3"
--action movePage --space "zclipages2" --title "title5" --newSpace "zclipages2A" --parent "@home"
--action movePage --space "zclipages2" --title "title5" --newSpace "zclipages2A" --parent "NOT_FOUND" --continue
--action movePage --space "zclipages2" --title "title6" --newSpace "zclipages2"
--action movePage --space "zclipages2" --title "title6" --referencePage "@home" --position "above"
--action movePage --space "zclipages2" --title "title6" --referencePage "@home" --position "below"

moveShortcut

--action moveShortcut --space "zclishortcuts" --name "Blog" --position "@first"
--action moveShortcut --space "zclishortcuts" --name "Blog" --position "Pages"
--action moveShortcut --space "zclishortcuts" --name "test.txt" --position "Home"

publishPage

--action publishPage --space "zpublish" --newTitle "doctype" --parent "@home" --replace --content "{html:tidy=true} <b>This is a test</b> <br> Another line. {html}"
--action publishPage --space "zpublish" --newTitle "doubledash" --parent "@home" --replace --content "{html} :---|:---:|--: {html} :---|:---:|--: "
--action publishPage --space "zpublish" --newTitle "image" --parent "@home" --replace --content "!home^picture.png!"
--action publishPage --space "zpublish" --newTitle "publishedCsvAutoNumber" --options "convertCsv" --replace --content "-"
--action publishPage --space "zpublish" --targetServer "http://confluence.examplegear.com" --targetUser "automation" --newTitle "publishedFromContent" --newSpace "zpublishTarget407476" --replace --content "-"
--action publishPage --space "zpublish" --title "@home" --newTitle "published" --replace
--action publishPage --space "zpublish" --title "@home" --targetServer "http://confluence.examplegear.com" --targetUser "automation" --newTitle "published" --newSpace "zpublishTarget407476" --replace
--action publishPage --space "zpublish" --title "forConvertCsv" --newTitle "publishedAfterConvertCsv" --parent "@home" --replace --options "convertCsv" --targetServer ""
--action publishPage --space "zpublish" --title "forCsvMultiple" --newTitle "publishedCsvMultiple" --parent "@home" --options "convertCsv" --replace
--action publishPage --space "zpublish" --title "publishedDocumentation" --parent "@home" --options "convertCsv,renderOnTarget,debug" --comment "Publish page with csv conversion to native" --minor --replace --content "BEFORE h3. On this page {toc:type=flat|separator=pipe|maxLevel=1} " --file "./src/itest/confluence/resources/reference.txt" --content2 " AFTER"
--action publishPage --space "zpublish" --title "source" --newTitle "published2" --replace --findReplaceRegex "(?s)</*div.*?>:" --findReplaceRegex "(?s)<input .*?</script>:" --verbose
--action publishPage --space "zpublish" --title "source" --newTitle "published3" --replace
--action publishPage --space "zpublish" --title "source" --targetServer "http://confluence.examplegear.com" --targetUser "automation" --newSpace "zpublishTarget407476" --newTitle "publishedReplace" --replace --content "-"
--action publishPage --space "zpublish" --title "source" --targetServer "http://confluence.examplegear.com" --targetUser "automation" --newTitle "publishedFromSource" --newSpace "zpublishTarget407476" --replace
--action publishPage --space "zpublish" --title "source" --targetServer "http://confluence.examplegear.com" --targetUser "automation" --newTitle "publishedTargetRendering" --newSpace "zpublishTarget407476" --replace --options "renderOnTarget"

removeAttachmentVersion

--action removeAttachmentVersion --space "zcliattachmentversions" --title "@home" --name "remove.txt" --version 1
--action removeAttachmentVersion --space "zcliattachmentversions" --title "@home" --name "remove.txt" --version 2
--action removeAttachmentVersion --space "zcliattachmentversions" --title "history" --name "remove.txt" --version 1
--action removeAttachmentVersion --space "zcliattachmentversions" --title "history" --name "remove.txt" --version 2

removeAttachmentVersions

--action removeAttachmentVersions --space "zcliattachmentversions" --title "@home" --file "output/cliattachmentversions/removeAttachmentVersionsAllAttachments.txt" --name "@all" --options "just1=week" --options "tableNoWrap" --dateFormat "yyyy-MM-dd HH:mm:ss.S" --simulate --outputType "table"
--action removeAttachmentVersions --space "zcliattachmentversions" --title "@home" --name "bulk.txt" --regex "version-\\d+" --limit 2 --date "2029-01-01"
--action removeAttachmentVersions --space "zcliattachmentversions" --title "history" --name "remove.txt" --date "2021-06-10 20:06:37.820" --dateFormat "yyyy-MM-dd HH:mm:ss.S" --limit 999 --simulate --columns "selected,by date,by limit,by comment,just 1,attachment title,version number,created" --outputType "table" --options "screenWidth=132"
--action removeAttachmentVersions --space "zcliattachmentversions" --title "history" --name "remove.txt" --date "2021-06-10 20:06:37.820" --dateFormat "yyyy-MM-dd HH:mm:ss.S" --regex "version-.*" --simulate
--action removeAttachmentVersions --space "zcliattachmentversions" --title "history" --name "remove.txt" --limit 3
--action removeAttachmentVersions --space "zcliattachmentversions" --title "history" --name "remove.txt" --limit 3 --dateFormat "yyyy-MM-dd HH:mm:ss.S" --simulate
--action removeAttachmentVersions --space "zcliattachmentversions" --title "history" --name "remove.txt" --limit 99999
--action removeAttachmentVersions --space "zcliattachmentversions" --title "history" --name "remove.txt" --options "just1=day" --options "screenWidth=132" --dateFormat "yyyy-MM-dd HH:mm:ss.S" --simulate --columns "selected,by date,by limit,by comment,just 1,attachment title,version number,created" --outputType "table"
--action removeAttachmentVersions --space "zcliattachmentversions" --title "history" --name "remove.txt" --options "just1=week" --options "screenWidth=132" --dateFormat "yyyy-MM-dd HH:mm:ss.S" --simulate --columns "selected,by date,by limit,by comment,just 1,attachment title,version number,created" --outputType "table"

removeBlog

--action removeBlog --space "zcliblogs" --title "addBlog1" --dayOfMonth 1 --month 2 --year 2020

removeComment

--action removeComment --id "417104298" --descendents

removeComments

--action removeComments --space "zconfluencecli" --title "This is title 0"

removeContentVersion

--action removeContentVersion --space "zhistory" --title "history" --version 1
--action removeContentVersion --space "zhistory" --title "history" --version 2

removeContentVersions

--action removeContentVersions --space "zhistory" --title "history" --date "2021-06-10 20:05:07.476" --dateFormat "yyyy-MM-dd HH:mm:ss.S"
--action removeContentVersions --space "zhistory" --title "history" --date "2021-06-10 20:47:09.637" --dateFormat "yyyy-MM-dd HH:mm:ss.S"
--action removeContentVersions --space "zhistory" --title "history" --limit 3
--action removeContentVersions --space "zhistory" --title "history" --limit 3 --simulate --columns "selected,by date,by limit,by comment,just 1,title,version,modified,minor edit,message" --outputType "table" --dateFormat "yyyy-MM-dd"
--action removeContentVersions --space "zhistory" --title "history" --limit 3 --simulate --regex ""

removeGroup

--action removeGroup --group "NOT_FOUND" --continue
--action removeGroup --group "testgroup1"
--action removeGroup --group "testgroup2"

removeLabels

--action removeLabels --labels "data, txt" --id "417104187"
--action removeLabels --space "zconfluencecli" --title "This is title 0" --labels "testLabel1, testLabel2"

removePage

--action removePage --id "417104226"
--action removePage --id 999999 --continue
--action removePage --space "zcliattachmentversions" --title "history" --continue
--action removePage --space "zclipages2" --title "title1"
--action removePage --space "zhistory" --title "history" --continue

removePermissions

--action removePermissions --space "zclipages" --title "PPP" --permissions "@all" --descendents
--action removePermissions --space "zclipages" --title "PPP" --permissions "edit" --descendents
--action removePermissions --space "zclipermissions" --group "confluence-users" --permissions "SETSPACEPERMISSIONS,REMOVEMAIL,REMOVEOWNCONTENT"
--action removePermissions --space "zclipermissions" --title "children" --permissions "edit" --userId "admin"
--action removePermissions --space "zclipermissions" --title "multipleUsers" --permissions "edit" --userId "admin,automation"
--action removePermissions --space "zclipermissions" --title "multipleUsers" --permissions "edit" --userId "automation,"
--action removePermissions --space "zclipermissions" --userId "clipermissions" --permissions "@all"
--action removePermissions --space "zclipermissions" --userId "clipermissions" --permissions "EXPORTSPACE"
--action removePermissions --space "zclipermissions" --userId "clipermissions" --permissions "setpagepermissions" --options "skipValidation"

removeQuestionWatch

--action removeQuestionWatch --title "@all"
--action removeQuestionWatch --title "zquestions_100 with some special characters < - + ( ) @ # $ & % ^ *"

removeShortcut

--action removeShortcut --space "zclishortcuts" --name "@all"
--action removeShortcut --space "zclishortcuts" --name "NOT FOUND" --continue
--action removeShortcut --space "zclishortcuts" --name "Shortcut 1"

removeSpace

--action removeSpace --space "zconfluencecliExport"

removeTopic

--action removeTopic --id "417398796"

removeTopicWatch

--action removeTopicWatch --topic "zquestions_1"

removeTrash

--action removeTrash --space "zclitrash"
--action removeTrash --space "zclitrash" --id "417103896"
--action removeTrash --space "zclitrash" --title "trash1"

removeUser

--action removeUser --userId "NOT_FOUND" --continue
--action removeUser --userId "testuser1"

removeUserFromGroup

--action removeUserFromGroup --userId "testuser3" --group "testgroup2"

removeWatch

--action removeWatch --space "zcliwatch"
--action removeWatch --space "zcliwatch" --title "@home" --userId "user encode cli" --children
--action removeWatch --space "zcliwatch" --title "watch1" --userId "user encode cli"

removeWebhook

--action removeWebhook --name "zwebhooks1"

renamePage

--action renamePage --space "zclipages2" --title "title2" --findReplaceRegex "title2(.*):title421473$1"
--action renamePage --space "zclipages2" --title "title421473" --newTitle "title421473RenamedAgain" --parent "title3"

render

--action render --content "<ac:structured-macro ac:name='info'><ac:rich-text-body><p>This is a test page. This is a second line to test line end replacement.</p></ac:rich-text-body></ac:structured-macro>" --noConvert
--action render --space "zrender" --file "output/render/renderTable.txt" --content "-" --clean
--action render --space "zrender" --title "@home" --content "-" --clean
--action render --space "zrender" --title "@home" --content "<ac:structured-macro ac:name='info'><ac:rich-text-body><p>aaa</p></ac:rich-text-body></ac:structured-macro>xxx" --noConvert --clean
--action render --space "zrender" --title "@home" --content "This is a test page. This is a second line to test line end replacement." --clean
--action render --space "zrender" --title "@home" --file "output/render/renderNoContent.txt"

renderBlog

--action renderBlog --space "zcliblogs" --title "addBlog1" --file "output/cliblogs/renderBlog.txt" --dayOfMonth 1 --month 2 --year 2020
--action renderBlog --space "zcliblogs" --title "copyBlog1" --file "output/cliblogs/renderBlogCopyBlog1.txt" --dayOfMonth 1 --month 3 --year 2020

renderPage

--action renderPage --space "zclipages" --title "This is title 0" --file "output/clipages/renderPage.txt" --findReplace "xxx:yyy" --findReplaceRegex "xxx:yyy"
--action renderPage --space "zrender" --title "@home" --file "output/render/renderPageClean.txt" --clean
--action renderPage --space "zrender" --title "@home" --options "representation=export_view"
--action renderPage --space "zrender" --title "table" --clean

renderRequest

--action renderRequest --space "zmisc" --title "@home" --file " "
--action renderRequest --space "zmisc" --title "MultipleUpdates" --file "output/misc/renderRequestMultipleUpdatesAttachments.txt" --url "pages/viewpageattachments.action?pageId=@contentId@"
--action renderRequest --space "zmisc" --title "MultipleUpdates" --file "output/misc/renderRequestMultipleUpdatesPageHistory.txt" --url "pages/viewpreviousversions.action?pageId=@contentId@"
--action renderRequest --url "admin/viewgeneralconfig.action" --findReplaceRegex "(?s)(?i).*(General configuration).*:Found - \$1"

restoreExport

--action restoreExport --file "exportSpace.zip" --noIndex

run

--action run -i "-a getApp --app @default"
--action run -i "-a getServerInfo --outputFormat 2 --outputType text" -i "-a getReplacementVariableList --outputType text"
--action run -i "-a getUser --reference currentUserKey" -i "-a getUser --comment \"@userId@ and @userDisplayName@\""
--action run < ./src/itest/confluence/resources/run.txt
--action run --common "--space zcliexamples" --input "-a storePage --title page1 --content 111" --input "-a storePage --title page2 --content 222" --input "-a storePage --title \"page 3\" --content 333" --input "-a storePage --title \"page 4 with 'single' and \"double\" quotes\" --content https://bitbucket.examplegear.com" --input "-a storePage --title page5 --content \" Link: https://examplegear.atlassian.net Link: https://examplegear.atlassian.net/wiki (confluence) Link: https://jira.examplegear.com and https://bamboo.examplegear.com Link: https://confluence.examplegear.com http://google.com?q=acli \"" --options "parallel"
--action run --common "--space zclipages"
--action run --common "--space zclipagesh1 --replace"
--action run --common "--space zclipagesh1"
--action run --common "--space zclispaces" --input "-a updateSpace --options status=archived" --input "-a getSpace" --input "-a updateSpace --options status=archived" --input "-a getSpaceList --columns key,status --regex zclispaces" --input "-a updateSpace --options status=current" --input "-a getSpaceList --columns key,status --regex zclispaces"
--action run --common "--space zclitrash" --input "-a storePage --title trash1" --input "-a storePage --title trash2" --input "-a storePage --title trash3" --input "-a addBlog --title blog1" --input "-a addBlog --title blog2" --input "-a addAttachment --title trash1 --content test --name test" --input "-a addAttachment --title trash3 --content test --name test" --input "-a removePage --title trash1" --input "-a removePage --title trash2" --input "" --input "-a getBlogList -v" --input "-a runFromBlogList --common \"-a removeBlog --id #blogId#\" --special \" #\""
--action run --file "./src/itest/confluence/resources/renderRequest.txt" --findReplace "@space@:zmisc"
--action run --file "./src/itest/confluence/resources/run.txt"
--action run --file "output/export/exportDataSpace.txt" --findReplace "--space zconfluencecli --name \"zconfluencecli\":--space zconfluencecliExport2 --name \"zconfluencecliExport2\""
--action run --input "-a addAttachment --space zconfluencecli --title @home --name example1.txt" --input "system -a sleep --value 3" --input "-a runFromContentList --cql \"type=attachment and space=zconfluencecli\" --regex example1.txt -i \"-a removeAttachment --id @pageId@ --name @contentId@\""
--action run --input "-a addSpace --space zcliaudits --continue" --input "-a removeSpace --space zcliaudits" --input "-a getAuditLogList --limit 100"
--action run --input "-a getPage --space ZCLI --title @home" --input "-a removeEntityProperty --space @space@ --title \"@title@\" --name \"my.entity.property\" --continue" --input "-a setEntityProperty --space @space@ --title \"@title@\" --name \"my.entity.property\" --value {} --replace" --input "-a setEntityProperty --space @space@ --title \"@title@\" --name \"my.entity.property\" --value \"{\"\"aaa\"\":\"\"bbb\"\"}\" --replace" --input "-a getReplacementVariableList --outputType text" --input "-a getEntityProperty --space @space@ --title \"@title@\" --name @property@" --input "-a setEntityProperty --space @space@ --title \"@title@\" --name \"my entity property\" --value \"[\"\"111\"\", \"\"222\"\"]\" --replace" --input "-a getEntityPropertyList --space @space@ --title \"@title@\" --outputType text" --input "-a removeEntityProperty --space @space@ --title \"@title@\" --name \"@property@\"" --input "-a removeEntityProperty --space @space@ --title \"@title@\" --name \"@property@\" --continue" --input "-a getEntityPropertyList --space @space@ --title \"@title@\" --regex \".*my.entity.*\"" --input "-a runFromEntityPropertyList --space @space@ -i \"-a getEntityProperty --id @pageId@ --name \"\"#property#\"\" \" --special \" #\"" --input "-a removePage --space @space@ --title copyProperties --continue" --input "-a copyPage --id @pageId@ --newTitle copyProperties --copyProperties" --input "-a getEntityPropertyList --id @pageId@ --outputType text"
--action run --input "-a getServerInfo --outputFormat 2" --input "-a getServerInfo --outputFormat 2 -s http://confluence.examplegear.com -u automation"
--action run --input "-a getUser" --input "-a getUser" --input "confluence220_developer -a getUser" --input "-a getUser"
--action run --input "-a login" --input "-a logout"
--action run --input "-a runFromPageList --space zrunner --common \"-a getLabelList --id @pageId@ \"" --input "-a runFromPageList --space zrunner --common \"-a getPage --id @pageId@ \"" --verbose
--action run --input "-a updateWebhook --name zwebhooks2 --options secret=" --input "-a getReplacementVariableList --outputType text" --input "-a getWebhookList --regex zwebhooks2 --dateFormat yyyy-mm-dd" --input "-a getWebhookList --dateFormat yyyy-mm-dd --outputType text --columns -3,4"
--action run --input "upm -a getAppList"
--action run --login "JSESSIONID=D038B8581BCE0A496A7DD49EE8A2239B"
--action run --space "zclipages" --title "Home" --file "./src/itest/confluence/resources/runContentActions.txt" --common "--space zclipages"
--action run --verbose

runFromAttachmentList

--action runFromAttachmentList --cql "space=zcliattachments and title='attachment page'" --regex "data.*" --common "--action getAttachmentList --space @space@ --regex @attachment@"
--action runFromAttachmentList --cql "space=zcliattachments and title='attachment page'" --regex "data.txt" --common "--action getAttachmentList --space @space@"
--action runFromAttachmentList --space "zcliattachments" --common "-a getServerInfo --comment ~attachment: @attachment@, id: @attachmentId@~" --special " ~"
--action runFromAttachmentList --space "zcliattachments" --title "attachment page" --common "-a getServerInfo --comment ~space: @space@, title: @title@, attachment: @attachment@, id: @attachmentId@~" --special " ~"

runFromAttachmentVersionList

--action runFromAttachmentVersionList --space "zcliattachmentversions" --title "history" --name "remove.txt" --regex "version-1" --common "-a removeAttachmentVersion --id @contentId@ --name @attachmentId@ --version @attachmentVersion@" --simulate

runFromBlogList

--action runFromBlogList --space "zcliblogs" --regex2 ".*This is a test blog..*" --common "-a getContent --id @blogId@ --outputFormat 2"

runFromCommentList

--action runFromCommentList --space "zconfluencecli" --title "This is title 0" --common "-a getClientInfo --comment @commentId@"

runFromContentList

--action runFromContentList --cql "type=page and space=zconfluencecli" --limit 1 --dateFormat "yyyy-MM-dd" --regex "(?i)home" --common: '-a getServerInfo --comment "space: @space@, spaceName: @spaceName@, title: @title@, contentId: @contentId@"'
--action runFromContentList --space "zclipages" --cql "space=zclipages and title='Home'" --common "--action addLabels --id ~@pageId@~ --labels ~done-by-action-run-from-content-list done-by-action-run-from-content-list2~" --special " # ~"
--action runFromContentList --space "zclipages" --cql "space=zclipages and title='Home'" --common "--action removeLabels --space @space@ --title ~@title@~ --labels @all" --special " # ~"
--action runFromContentList --space "zclipages" --cql "space=zclipages and title='Home'" --common "--action removeLabels --space @space@ --title ~@title@~ --labels done-by-action-run-from-content-list" --special " # ~"

runFromGroupList

--action runFromGroupList --regex ".*users" --common "-a getUserList --group @group@"

runFromList

--action runFromList --common "-a addAttachment --space zmisc --title MultipleUpdates --name: data.txt --content: @entry@" --list "1"
--action runFromList --common "-a storePage --space zmisc --title MultipleUpdates --parent @home --content @entry@ -v" --list "1"
--action runFromList --list ".*data\\..*, .*large\\..*" --common "-a getAttachmentList --append --space zcliattachments --regex @entry@ --outputFormat 2 --file output/cliattachments/attachmentListForAppend.csv"
--action runFromList --list "1,2,3,4,5,6,7,8,9,10,11,12," --common "-a addAttachment --space zcliattachmentversions --title @home --name bulk.txt --content xxx --comment version-@entry@"
--action runFromList --list "A,B" --common "-a getSpacePermissionList --space zrunner --cookies output/runner/cookies.txt -v" --verbose
--action runFromList --list "A,B" --common "-a getSpacePermissionList --space zrunner --cookies output/runner/cookiesBoth.txt -v" --cookies "output/runner/parentCookiesBoth.txt" --verbose
--action runFromList --list "A,B" --common "-a getSpacePermissionList --space zrunner -v" --cookies "output/runner/parentCookies.txt" --verbose
--action runFromList --list "Client, Server" --common "-a get@entry@Info"
--action runFromList --list "org.*,com.*" --regex "@entry@" --common "-a getAppList --regex \"@entry@\""
--action runFromList --list "xxx, yyy" --common "--action runFromSpaceList --regex ~zconfluencecli|zrunner~ --common ~--action getSpace --space @space@ --comment @entry@ ~" --special " ~"

runFromPageList

--action runFromPageList --cql "space=zclipages" --outputFormat 3 --regex "(?i)Home" --regex2 "(?s).*This is a test page..*" --common "-a getClientInfo"
--action runFromPageList --space "@ALL" --regex ".*child.*" --common "-a getPermissionList --id @pageId@ --outputFormat: 2 --file output/clipermissions/permissionList.csv --append"
--action runFromPageList --space "zcliexamples" --clearFileBeforeAppend --common "-a getSource --id @pageId@ --special: \" #\" --options debugFindReplace --append --file output/cliexamples/spaceLinkList.txt" --input "--findReplaceRegex \"(?s).*?href=.(http[s]{0,1}://[./a-z]+)#\$1,\" --findReplaceRegex \"(?s)(((http[s]{0,1}://[./a-z]+),)*).*#\$1\" --findReplaceRegex \",#' \\n '\" "
--action runFromPageList --space "zcliexamples" --input "-a getSource --id @pageId@ --file output/cliexamples" --input "-a getReplacementVariableList"
--action runFromPageList --space "zclipages" --common "-a getLabelList --id @pageId@ --outputFormat 999 --file output/clipages/labelList.csv --append"
--action runFromPageList --space "zclipages" --parent "@home" --simulate --input "-a getPage --space @space@ --title \"@title@\""
--action runFromPageList --space "zclipages" --title "Home" --common "--action addLabels --space zclipages --title \"@title@\" --labels done-by-action" --limit 1
--action runFromPageList --space "zclipagesh1" --title "AAA" --descendents --continue --common "-a copyPage --id @pageId@ --newSpace zclipagesh2 --parent @source --replace"

runFromShortcutList

--action runFromShortcutList --space "zclishortcuts" --regex ".*google.com.*" --common "-a removeShortcut --space zclishortcuts --id @shortcutId@"

runFromSpaceList

--action runFromSpaceList --common "--action getSpace --space @space@" --simulate
--action runFromSpaceList --regex "zconfluencecli" --common "--action getSpace --space @space@"

runFromSql

--action runFromSql --file "./src/itest/confluence/resources/run.sql" --host "postgres.examplegear.com" --port "50940" --database "test" --dbUser "automation" --dbPassword "***"

runFromTopicList

--action runFromTopicList --regex "zquestions_1" --common "--action addTopicWatch --id @topicId@"

runFromTrashList

--action runFromTrashList --space "zclitrash" --simulate --common "-a removeTrash --id @contentId@"

runFromUserList

--action runFromUserList --limit 2 --regex "((admin)|(automation))" --common: "--action getServerInfo --comment \"@userId@\" "

runFromWatchList

--action runFromWatchList --space "zcliwatch" --common "-a addWatch --space @space@ "
--action runFromWatchList --space "zcliwatch" --title "watch1" --common "-a addWatch --space @space@ --title @title@ --userId \"@userId@\" "

runFromWebhookList

--action runFromWebhookList --regex "zwebhooks1.*" --common "-a removeWebhook --id @webhookId@"

showShortcut

--action showShortcut --space "zclishortcuts" --name "NOT FOUND" --continue
--action showShortcut --space "zclishortcuts" --name "Pages"

storeBlog

--action storeBlog --space "zcliblogs" --title "addBlog2" --content "This is a test blog. Updated." --dayOfMonth 1 --month 2 --year 2020 --replace --comment "storeBlog updated again"
--action storeBlog --space "zcliblogs" --title "addBlog2" --content "This is a test blog." --dayOfMonth 1 --month 2 --year 2020 --replace --comment "storeBlog updated"

storePage

--action storePage --space "zcliattachments" --title "attachment page" --content "This is a test page." --parent "Home"
--action storePage --space "zcliexamples" --title "csoap-234" --parent "@home" --special " # ~" --content "<p><ac:link><ri:page ri:content-title=~Home~/></ac:link></p>" --noConvert
--action storePage --space "zclimarkdown" --title "markdown ampersand" --content "[ABC](https://bobswift.atlassian.net?xxx&yyyzzz=aaa)" --noConvert --markdown
--action storePage --space "zclimarkdown" --title "markdown readme with toc" --parent "@home" --file "./src/itest/confluence/resources/readme-flexmark.markdown" --markdown
--action storePage --space "zclimarkdown" --title "markdown readme" --parent "@home" --file "./src/itest/confluence/resources/readme.markdown" --markdown
--action storePage --space "zclimarkdown" --title "markdown" --markdown --content "Some text with <code>some code</code> inside. [[home]] [[${space}:home]] [[aaa|${space}:home]] [[${space}:]] [[bbb|${space}:]] [[zzz|http://google.com]] " --content2 "Special characters: !@#\$%^&*()_<>'. xxx@xxx.com other: β€œaaa” ’bbbβ€˜ β€” – … " --parent "@home"
--action storePage --space "zclimarkdown" --title "markdownXss" --file "-" --markdown --parent "@home"
--action storePage --space "zclimodify" --title "modify" --content "This is a test page. http://www.test.com:8888/jira" --parent "@home"
--action storePage --space "zclipages" --title "This is title 1" --content "This is a test page." --parent "@home"
--action storePage --space "zclipages" --title "This is title 1" --content "This is a test page." --parent "Home"
--action storePage --space "zclipages" --title "This is title 1" --file "./src/itest/confluence/resources/data.txt" --content2 "content added after file data" --comment "automation updated" --minor
--action storePage --space "zclipages" --title "This is title 1" --labels "testLabel"
--action storePage --space "zclipages" --title "This is title 2" --content "This is a test page." --parent "This is title 1"
--action storePage --space "zclipages" --title "This is title 3" --content "This is a test page." --parent "This is title 2"
--action storePage --space "zclipages" --title "This is title 8" --file "-" --content2 "content added after file data"
--action storePage --space "zclipages" --title "replace" --home "@home" --content "XXX"
--action storePage --space "zclipages" --title "roundTrip" --content "This is a test page." --parent "@home"
--action storePage --space "zclipages" --title "roundTrip" --file "output/clipages/getPageSourceRoundTrip.txt" --noConvert
--action storePage --space "zclipages" --title "template" --parent "@home" --content "Variable 1: \$VAR1\$ Variable 2: %VAR2% Variable 3: (VAR3)" --replace
--action storePage --space "zclipages" --title "xxx.,<>_|~!{}[]=//&*%-+'" --content "This is a test page." --parent "@home"
--action storePage --space "zclipages4" --title "encoding" --file "./src/itest/confluence/resources/encoding.txt" --encoding "UTF-16"
--action storePage --space "zclipages4" --title "encoding2" --file "./src/itest/confluence/resources/encoding2.txt" --encoding "SJIS"
--action storePage --space "zclipages4" --title "encoding3" --content "γƒ†γ‚Ήγƒˆγƒ†γ‚Ήγƒˆ testtest 今ζ—₯明ζ—₯明後ζ—₯ あああああ testaaaaaaaaaaaaaaa οΌ‘οΌ’οΌ“οΌ”οΌ•οΌ–"
--action storePage --space "zclipagesh1" --title "CCC1623373564546" --content "xxx" --parent "BBB"
--action storePage --space "zconfluencecli" --title "Special: &" --content "xxx" --parent "@home"
--action storePage --space "zconfluencecli" --title "This is title 1" --content "This is a test page." --parent "Home"
--action storePage --space "zconfluencecli" --title "This is title 7" --content "a b c d e,: a b c d e" --findReplace "a b:x y"
--action storePage --space "zconfluencecli" --title "This is title 7" --content "a b c d e,: a b c d e" --findReplace "a b:x y" --findReplace ",:;" --findReplace "':':*" --findReplace "d:z" --findReplace "e:z"
--action storePage --space "zconfluencecli" --title "This is title 7" --content "a b c d e,: a b c d e" --findReplaceRegex "[abc]:www"
--action storePage --space "zconfluencecli" --title "viewRestricted" --content "" --parent "@home" --replace
--action storePage --space "zhistory" --title "history" --content "Content for: 1"
--action storePage --space "zhistory" --title "history" --content "Content for: 2"
--action storePage --space "zhistory" --title "history" --content "Content for: 3"
--action storePage --space "zhistory" --title "history" --content "Content for: 4"
--action storePage --space "zhistory" --title "history" --content "Content for: 5"
--action storePage --space "zhistory" --title "history" --content "Content for: 6"
--action storePage --space "zmisc" --title "ampersand" --content "XXX & YYY" --noConvert
--action storePage --space "zmisc" --title "ampersand2" --content "XXX & YYY"
--action storePage --space "zrender" --title "table" --file "output/render/renderTable.txt" --noConvert

updateComment

--action updateComment --id "417104228" --comment "@commentBody@"
--action updateComment --id "417104228" --comment "@commentBody@" --findReplace "xxx:yyy" --findReplaceRegex "y{3}:comment"
--action updateComment --id "417104228" --comment "{info}Updated xxx text{info}"

updateSpace

--action updateSpace --space "zclispaces3Target390758" --name "temporary name" --home "This is title"

updateTopic

--action updateTopic --topic "zquestions_1"
--action updateTopic --topic "zquestions_1" --description "Some nice description"
--action updateTopic --topic "zquestions_1" --featured
--action updateTopic --topic "zquestions_3" --description "updated: Some nice description"

updateUser

--action updateUser --userId "testuser1" --userFullName "Test User1" --userEmail "testuser1@examplegear.com" --userPassword "***"

updateWebhook

--action updateWebhook --id "817" --url "https://examplegear.com/acli2" --name "zwebhooks1updated"
--action updateWebhook --name "zwebhooks2" --events "page_created" --options "enable"

validateLicense

--action validateLicense