Examples

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.



addLicense

--action addLicense --app "org.swift.confluence.cache" --file "-"
--action addLicense --app "org.swift.confluence.cache" --file "output/upmcli"

addLicenses

--action addLicenses --file "output/upmcli/licenses"

getApp

--action getApp --app "Bob Swift Atlassian Add-ons - Wiki Markup"
--action getApp --app "com.atlassian.upm.atlassian-universal-plugin-manager-plugin"
--action getApp --app "org.swift.confluence.cache" --dateFormat "yyyy.MM.dd"
--action getApp --app "org.swift.confluence.wiki"

getAppList

--action getAppList --includeSystem --includeDisabled
--action getAppList --outputFormat 999 --columns "name, key, version, application version, marketplace latest compatible version, marketplace latest version"
--action getAppList --regex "Bob Swift.*"
--action getAppList --regex "Bob Swift.*Cache.*" --outputFormat 2 --dateFormat "yyyy.MM.dd"

getClientInfo

--action getClientInfo

installApp

--action installApp --app "org.swift.confluence.wiki" --simulate
--action installApp --app "org.swift.confluence.wiki" --wait
--action installApp --app "org.swift.confluence.wiki" --wait --options "uninstall"
--action installApp --file "./src/itest/upm/resources/bobswift-wiki-markup-1.4.0.jar" --wait
--action installApp --url "https://marketplace.atlassian.com/download/plugins/org.swift.confluence.wiki/version/140" --wait
--action installApp --url "https://marketplace.atlassian.com/download/plugins/org.swift.confluence.wiki/version/140" --wait --options "download"

removeLicense

--action removeLicense --app "org.swift.confluence.cache"

runFromAppList

--action runFromAppList --limit 1 --common "-a getApp --app @app@"