> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flexagon.com/llms.txt
> Use this file to discover all available pages before exploring further.

# createServer

> The createServer operation creates a standalone Mule server on a Linux or Windows Endpoint. The Mule runtime files are taken from an archive file (zip

The createServer operation creates a standalone Mule server on a Linux or Windows Endpoint.

The Mule runtime files are taken from an archive file (zip, tar, tar.gz, .tgz) file in the `FD_ARTIFACTS_DIR` if it exists. If not, the `FDMULE_DOWNLOAD_URL` property is used to download the Mule Runtime.

The archive is extracted to `FDMULE_HOME`, tested and setup to be run. On Windows, this includes installing the service. On Unix, this includes verifying that the mule executable has the execute flag set.

# Target Properties

<table><colgroup><col /><col /><col /><col /></colgroup><tbody><tr><th>**Property Name**</th><th>**Property Code**</th><th>**Required**</th><th>**Description**</th></tr><tr><td>Mule Home</td><td>`FDMULE_HOME`</td><td>Yes</td><td>\
</td></tr><tr><td>Download URL</td><td>`FDMULE_DOWNLOAD_URL`</td><td>No</td><td>Complete URL to download Mule from.Required if no archive file of Mule is present in the `FD_ARTIFACTS_DIR`.</td></tr><tr><td>Recreate Existing</td><td>`FDMULE_RECREATE_IF_EXISTS`</td><td>No</td><td>If checked, this operation will recreate a clean server where one existed. If unchecked, the operation will error out if the Mule Home exists.</td></tr><tr><td>Stop if Running</td><td>`FDMULE_STOP_IF_RUNNING`</td><td>No</td><td>If checked, this operation will stop a running mule server if it is running before removing it. If unchecked, the operation will error out if the Mule server is running.</td></tr><tr><td>MULE\_APP</td><td>`FDMULE_APP`</td><td>No</td><td>(Windows only) The Service Name to use for this Mule serverMust be unique on the Endpoint.</td></tr><tr><td>\
MULE\_APP\_LONG</td><td>`FDMULE_APP_LONG`</td><td>No</td><td>(Windows only) The Service Description Name to use for this Mule serverMust be unique on the Endpoint.</td></tr></tbody></table>

# Artifacts

This operation consumes artifacts from the artifacts repository.

# Endpoint Selection

This operation will select all available endpoints associated to the Target.

# Endpoint Execution

This operation will execute on all of the selected endpoints.
