> For the complete documentation index, see [llms.txt](https://docs.tricloudnexus.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tricloudnexus.io/edge/nexus-modules/platform-modules/apphostmodule/direct-commands/downloadapplications.md).

# DownloadApplications

Calling this method triggers a download and reinitialization of an already configured application, replacing the existing.\
When triggered, the currently running application is stopped and the new version is downloaded and started.

### **Method Name:**

DownloadApplications

### **Payload:**

The direct command requires a list applications to download. The applications must already be defined in the module twin.

```
{
    "applicationsToDownload": [
        "Application1",
        "Application2"
    ]
}
```

### **Return value**

The direct command returns an OperationResult that indicates either success or failure. If an error occurs, the error text is returned as well.
