>
Actions
Actions
These are the keywords that tell the CLI what action to take. The listed actions correspond to everything you can do via the screens on the app when you point, click, and type text into fields.
You see a pattern to the beginning or prefix that is an action verb such as: add, copy, export, get, modify, move, remove, run, store, update, and more depending on the app.
The ending or suffix to the action name is the noun or object of the verb such as attachment, comment, label, permission, user, and more depending on the app.
For example, the action addComment adds a comment to an item in the app.
Each app has its own features and set of actions, in addition to the actions shared with other apps.
To get all help for an action add --help to the action. Example: --action runFromList --help
| addLicense | Add a license to an installed app for Server. For Cloud, add a private license token for an app. | |||||
| addLicenses | Add a license for each app installed on the instance that has an Atlassian app license referenced in the directory specified by the file parameter. License files must be named after the apps key with or without an extension. | |||||
| disableApp | Disable an app. |
|
| |||
| enableApp | Enable an app. |
|
| |||
| getApp | Get information for an installed app. | |||||
| getAppList | Get a list of installed apps with regex filtering on name or key. By default, only enabled, user installed apps are included. |
| ||||
| getAutomation | Get information for an automations specified by name or directory or both. An automation is a directory containing a 'automation.yaml' description and optional ACLI script files or related resources. |
| ||||
| getAutomationList | Get a list of automations with regex filtering on name. An automation is a directory containing a 'automation.yaml' description and optional ACLI script files or related resources. |
|
| |||
| getClientInfo | Get information about this client. |
| outputFormat, outputType, file, limit, regex, append, encoding, columns, select, options | |||
| getReplacementVariableList | Get a list of replacement variable names and values with regex filtering on name. This action is only useful within a run script where replacement variables are remembered. |
|
| |||
| getSqlResultList | Get a list of results from a dynamic SQL query or other dynamic SQL request. Specify the SQL using the sql parameter or indirectly using '--sql @' to specify a file with SQL. Use a site configuration entry with database connection information either directly as a site for the action or indirectly as a reference on the database parameter like '--database @'. |
| ||||
| getUpgradeInfo | Get information about upgrades available for this client. |
|
| |||
| help | Show general help information for the client including actions and parameters. When used on a partial action string, action specific help will be shown. |
|
|
| ||
| installApp | Install an app using a url or file or Marketplace app key. If an app key is used and version is not provided, it will default to @compatible provided we can determine the latest compatible version for the server version. If a compatible version cannot be determined (like for EAP releases), default will be latest version. If @default is used for the file parameter, an attempt will be made to find an obr or jar file in the standard Maven or Gradle target directory. When doing a Marketplace install by app key or the requested version is provided, the actual app version will be confirmed to match the requested version in order to catch unsuccessful downgrade attempts. UPM will not downgrade an already installed app. For many cases, it is best to uninstall first. Use either run the uninstallAddon action separately before or use --options uninstall if the app parameter is provided or file is @default. UPM may fail indicating the file is invalid when installing by URL from some websites like Confluence. Avoid the error by using --options download to first download to the local file system and then install. | |||||
| provideFeedback | Provide feedback, comments, and suggestions to ACLI developers based on your experience with the product. We appreciate all feedback in the spirit of continuous improvement in helping customers with their tasks. For specific product issues and immediate help, please submit a request to our support portal at https://apps.appf.re/acli-support. |
|
| |||
| removeLicense | Remove license from an installed app for Server. For Cloud, remove private license token for an app. |
| ||||
| renderRequest | Render URL based request. URL can be a partial URL. The response data is returned optionally modified by findReplace processing. Use '--pretty' to format returned JSON data in a more readable form. Also, for JSON data, you can use '--options setReplacementVariables'. |
| ||||
| run | Run actions from a file, list of input parameters, or standard input (default). Use one or more field parameters to set replacement variables that can be used in run script actions. This makes it possible to parameterize the script so it can be applied to more general use cases. For example, '--field project=MYPROJECT'. This capability is available for all run type actions. |
| ||||
| runAutomation | Run an automation identified by name or directory or both. |
| ||||
| runFromAppList | Run an action for each app matching the same filtering options as with getAppList. | |||||
| runFromAutomationList | Run actions for each automation with regex filtering on name equivalent to getAutomationList. |
| ||||
| runFromCsv | Run actions generated from a CSV file. The default behavior is that each column name that matches a valid parameter for the client generates a parameter with value matching the column value for the row being process. Alternatively, use '--options setReplacementVariables' to change the behavior to set a replacement variable whose key (case sensitive) is the column name with blanks removed and whose value is the value matching the column value for the row being processed. |
| ||||
| runFromJson | Run actions based on JSON data used for replacement variables and list processing based on standard Json paths specified for list and list2 parameters. Valid JSON data must be provided using the data parameter or file parameter. Actions can be specified using input, common, or file (when not used for data) parameters. Replacement variables are defined from the JSON data using JsonPath naming convention with dot separators. See the JsonPath reference at https://github.com/json-path/JsonPath/blob/master/README.md. |
| ||||
| runFromList | Run actions for each entry in a list with corresponding entry replacement variable. When file is provided, each action in the file augmented by the common parameter will be run for each entry. Otherwise, just the action specified by the common parameter will be run. When available, list2 entries provide values for the entry2 replacement variable. By default, the entry2 replacement variable is set in parallel with entry replacement variables for each action run. However, if '--options listProcessing=serial' is specified, each combination of entries from list and list2 will cause an action to run. Use one or more field parameters to set replacement variables that can be used in run script actions. This makes it possible to parameterize the script so it can be applied to more general use cases. For example, '--field project=MYPROJECT'. |
| ||||
| runFromPropertyFile | Run actions for each entry from a (Java) property file. | propertyFile, (input or common or file) |
| |||
| runFromSql | Run actions generated by SQL provided by the sql parameter, a file, or standard input. Replacement variables will be set representing each column (case sensitive, blanks removed) in the result set and the corresponding column value for each row processed. |
| ||||
| runIf | Run actions only if a regex based condition is met. Other parameters and behavior are the same as the run action. By default the regex is used for a find of the value parameter. The options parameter can be set to one or more of the following to modify the default behavior. literal - to treat the regex string as a literal string, exact - to require an exact match of the value, negative - to reverse the condition so a match means do NOT run action. In addition, use '--regex ""' to match on an empty string. Use one or more field parameters to set replacement variables that can be used in run script actions. This makes it possible to parameterize the script so it can be applied to more general use cases. For example, '--field project=MYPROJECT'. |
| ||||
| setReplacementVariables | Set one or more replacement variables specified using field parameters with name=value syntax or loaded from a property file. Value specified replaces any previously set variable with the same name including values set by other actions that set replacement variables. This is an example to save a previously set value, use '--field myIssue=@issue@'. Find and replace logic is applied to the value before setting the variable providing a way to manipulate values in a script. Variables are available only within the scope of the run script they were set in. If a regex based condition is provide using the regex and value parameters, the variables will only be set if the regex condition is met. By default, the regex is used for a find of the value parameter. The options parameter can be set to one or more of the following to modify the default behavior - literal - to treat the regex string as a literal string, exact - to require an exact match of the value, negative - to reverse the condition so a match means do NOT set the variables. In addition, use blank for the regex parameter to match on an empty string. |
|
| |||
| sleep | Sleep a number of seconds. Defaults to 1 second. Use in ACLI scripts that may need to wait before proceeding to the next action. For instance, waiting for server to complete updating search indexes or polling type scenarios. |
|
| |||
| uninstallApp | Uninstall the app. If @default is specified, an attempt will be made to find an appropriate value by looking for an Atlassian app descriptor file with the value specified. |
|
