Description
The main UPM Command Line Interface (CLI) page shows you examples of installing an add-on. This article shows how to install and license all your standard add-ons quickly. An example use case is setting up a test server before and upgrade. This will install the latest compatible Marketplace version for the add-on. If you are using an EAP or beta version of the Atlassian server that may not have compatible add-ons listed, it will install the latest version on the Marketplace.
The following requires a CLI 7.1 client or higher. CLI 7.7 is recommended.
Install add-ons
upm-confluence -a runFromList --common "-a installAddon --addon @entry@ --wait" --continue --list org.swift.confluence.cli,org.swift.confluence.acli,org.swift.confluence.table,org.swift.confluence.run,org.swift.confluence.table,org.swift.confluence.run
Licenses for add-ons
The following requires you have all your add-ons' licenses in files named after the add-on key containing the license key. Set the file parameter to the directory containing your license files.
-a runFromList --common "-a addLicenses --file licenses" --continue --list org.swift.confluence.cli,org.swift.confluence.acli,org.swift.confluence.table,org.swift.confluence.run,org.swift.confluence.table,org.swift.confluence.run
ls licenses - com.appfire.confluence.codepro.txt - com.atlassian.confluence.extra.graphviz.txt - org.swift.confluence.acli.txt - org.swift.confluence.cache.txt - org.swift.confluence.excel.txt - org.swift.confluence.flash.txt - org.swift.confluence.html.txt - org.swift.confluence.macrosecurity.txt - org.swift.confluence.markdown.txt - org.swift.confluence.run.txt - org.swift.confluence.script.txt - org.swift.confluence.sql.txt - org.swift.confluence.table.txt - org.swift.confluence.visio.txt
Add licenses for all add-ons
With CLI 7.7, we made it even easier to update and manage your licenses with a single action with the new addLicenses action. This will add licenses to any add-on in the instance that has a corresponding license file in the directory. This works for any Atlassian add-on license.
-a addLicenses --file licenses