> ## Documentation Index
> Fetch the complete documentation index at: https://gcore-doc-1046.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Create and manage templates

Templates include predefined configurations for FastEdge apps. Using templates eliminates the need to manually configure each aspect of an application, which speeds up the configuration process and ensures consistency across deployments.

## Create a template

Both CDN and HTTP applications have the same template configuration process.

<Tabs>
  <Tab title="From the Templates page">
    To add a template to the Customer Portal:

    1\. In the [Gcore Customer Portal](https://portal.gcore.com/accounts/reports/dashboard), navigate to **FastEdge** and choose the relevant page: **HTTP Applications** or **CDN Applications**.

    2\. Open the **Templates** page and click **Create template**.

    <Frame>
      <img src="https://mintcdn.com/gcore-doc-1046/NmzDUjLxfmvDFPXn/images/docs/fastedge/create-manage-templates/create-template-button.png?fit=max&auto=format&n=NmzDUjLxfmvDFPXn&q=85&s=b1ec06c04c51c8ed13847ff6882cfc8a" alt="Create template button" width="5524" height="1412" data-path="images/docs/fastedge/create-manage-templates/create-template-button.png" />
    </Frame>

    3\. Add your custom binary file. Once the upload is finished, the file will be automatically assigned to the template.

    <Frame>
      <img src="https://mintcdn.com/gcore-doc-1046/NmzDUjLxfmvDFPXn/images/docs/fastedge/create-manage-templates/create-template-upload-binary.png?fit=max&auto=format&n=NmzDUjLxfmvDFPXn&q=85&s=44dcb15a1ce9a6d7764bbd576ee99dc8" alt="Add raw binary dialog" width="481" height="324" data-path="images/docs/fastedge/create-manage-templates/create-template-upload-binary.png" />
    </Frame>

    4\. Give your template a name. Use a clear and descriptive name to ensure the template is easy to identify.

    5\. (Optional) Add a description to provide extra information about the template.

    6\. (Optional) Add instructions for using the template. Include any critical information that's important to know when creating an app, such as required variables, headers, and any configuration tips.

    7\. Specify any parameters. To add a required parameter, select the **Mandatory parameter** checkbox. If you need to add encrypted environment variables to applications created from this template, add a new parameter with the type **Secret**.

    <Frame>
      <img src="https://mintcdn.com/gcore-doc-1046/NmzDUjLxfmvDFPXn/images/docs/fastedge/create-manage-templates/add-secret-parameter.png?fit=max&auto=format&n=NmzDUjLxfmvDFPXn&q=85&s=d14e17cc7965ad6b1b0cec95af35cafe" alt="Secret parameter marked as required" width="5760" height="1008" data-path="images/docs/fastedge/create-manage-templates/add-secret-parameter.png" />
    </Frame>

    When creating an application based on this template, this parameter will appear as a "secret" that you can assign from the Secret Manager. Check detailed instructions on how to add [environment variables](/fastedge/manage-apps#environment-variables) and [secrets](/fastedge/manage-apps#secrets) to an application.

    <Frame>
      <img src="https://mintcdn.com/gcore-doc-1046/NmzDUjLxfmvDFPXn/images/docs/fastedge/create-manage-templates/example-variable-encrypt.png?fit=max&auto=format&n=NmzDUjLxfmvDFPXn&q=85&s=93f499b84387f25eed25cb88fa95a170" alt="Example of a secret parameter in an app" width="1292" height="191" data-path="images/docs/fastedge/create-manage-templates/example-variable-encrypt.png" />
    </Frame>

    8\. Click **Save template**.

    The template was successfully added. You can use this or any template shared by your admin to create FastEdge applications. To share the template with other users in your account, contact the admin for assistance.
  </Tab>

  <Tab title="From an existing application">
    You can convert an existing application into a template for future reuse. The template will be created using the binary of the original application, and it will contain any associated environment variables.

    To add a template from an application:

    1\. In the [Gcore Customer Portal](https://portal.gcore.com/accounts/reports/dashboard), navigate to **FastEdge** and choose the relevant page: **HTTP Applications** or **CDN Applications**.

    2\. On the **Applications** page, click the three-dot icon next to the application you want to configure.

    3\. Select **Manage**.

    4\. Click **Actions** and choose **Create template**.

    <Frame>
      <img src="https://mintcdn.com/gcore-doc-1046/NmzDUjLxfmvDFPXn/images/docs/fastedge/create-manage-templates/create-template-from-app.png?fit=max&auto=format&n=NmzDUjLxfmvDFPXn&q=85&s=e77942f01d77c5a66aeec7f3f38ac5b8" alt="Create template from app menu" width="5424" height="976" data-path="images/docs/fastedge/create-manage-templates/create-template-from-app.png" />
    </Frame>

    5\. Review the current configuration and, if necessary, update the template's name and description.

    6\. Click **Save template** to apply the changes.
  </Tab>
</Tabs>

## Edit a template

To adjust the template configuration or add new settings:

1\. In the [Gcore Customer Portal](https://portal.gcore.com/accounts/reports/dashboard), navigate to **FastEdge** and choose the relevant page: **HTTP Applications** or **CDN Applications**.

2\. On the **Templates** page, click the three-dot icon next to the template that you want to edit.

3\. Click **Edit template**.

<Frame>
  <img
    src="https://mintcdn.com/gcore-doc-1046/NmzDUjLxfmvDFPXn/images/docs/fastedge/create-manage-templates/edit-template-menu.png?fit=max&auto=format&n=NmzDUjLxfmvDFPXn&q=85&s=8f3976cd88fa74da6beb36c9c3bfc4f3"
    alt="Edit template menu
item"
    width="1283"
    height="387"
    data-path="images/docs/fastedge/create-manage-templates/edit-template-menu.png"
  />
</Frame>

4\. Update the configuration as you see fit, and then click **Save template** to apply the changes.

<Frame>
  <img
    src="https://mintcdn.com/gcore-doc-1046/NmzDUjLxfmvDFPXn/images/docs/fastedge/create-manage-templates/edit-template-form.png?fit=max&auto=format&n=NmzDUjLxfmvDFPXn&q=85&s=cab29d0c576e208c7824c7ee7bcb8bf2"
    alt="Edit template
form"
    width="1275"
    height="569"
    data-path="images/docs/fastedge/create-manage-templates/edit-template-form.png"
  />
</Frame>

The template has been updated.

## Delete a template

<Warning>
  **Warning**

  Deleted templates can't be restored.
</Warning>

1\. In the [Gcore Customer Portal](https://portal.gcore.com/accounts/reports/dashboard), navigate to **FastEdge** and choose the relevant page: **HTTP Applications** or **CDN Applications**.

2\. On the **Templates** page, click the three-dot icon next to the template that you want to remove.

3\. Click **Delete template**.

<Frame>
  <img
    src="https://mintcdn.com/gcore-doc-1046/NmzDUjLxfmvDFPXn/images/docs/fastedge/create-manage-templates/delete-template.png?fit=max&auto=format&n=NmzDUjLxfmvDFPXn&q=85&s=9a89d3e1ad44954ff04555f569faeff5"
    alt="Delete
template"
    width="4292"
    height="1292"
    data-path="images/docs/fastedge/create-manage-templates/delete-template.png"
  />
</Frame>

You've permanently removed the template from the Customer Portal.

## Update template binary

If you want to update the application binary to a newer version or add substantial changes to the template configuration, you can replace the existing WebAssembly (.wasm) file with a new one.

To update the binary file:

1\. In the [Gcore Customer Portal](https://portal.gcore.com/accounts/reports/dashboard), navigate to **FastEdge** and choose the relevant page: **HTTP Applications** or **CDN Applications**.

2\. On the **Templates** page, click the three-dot icon next to the template that you want to edit.

3\. Click **Update template binary**.

<Frame>
  <img
    src="https://mintcdn.com/gcore-doc-1046/NmzDUjLxfmvDFPXn/images/docs/fastedge/create-manage-templates/update-template-binary.png?fit=max&auto=format&n=NmzDUjLxfmvDFPXn&q=85&s=5a3c9b339abaf0c96bd5571480f35f0a"
    alt="Update template
binary"
    width="4292"
    height="1292"
    data-path="images/docs/fastedge/create-manage-templates/update-template-binary.png"
  />
</Frame>

4\. Add the new .wasm file from your local file system. Once the upload is finished, the file will be automatically added to the Customer Portal.

<Frame>
  <img
    src="https://mintcdn.com/gcore-doc-1046/NmzDUjLxfmvDFPXn/images/docs/fastedge/create-manage-templates/create-template-upload-binary.png?fit=max&auto=format&n=NmzDUjLxfmvDFPXn&q=85&s=44dcb15a1ce9a6d7764bbd576ee99dc8"
    alt="Upload template binary
dialog"
    width="481"
    height="324"
    data-path="images/docs/fastedge/create-manage-templates/create-template-upload-binary.png"
  />
</Frame>

5\. Verify the current configuration and click **Save template** to apply the updates.

<Frame>
  <img
    src="https://mintcdn.com/gcore-doc-1046/NmzDUjLxfmvDFPXn/images/docs/fastedge/create-manage-templates/edit-template-binary.png?fit=max&auto=format&n=NmzDUjLxfmvDFPXn&q=85&s=6939ea1c0e3958aa88901b54a76d2644"
    alt="Edit template binary
form"
    width="1275"
    height="578"
    data-path="images/docs/fastedge/create-manage-templates/edit-template-binary.png"
  />
</Frame>

## Create an app from a template

You can deploy a FastEdge application directly from the Templates page:

1\. In the [Gcore Customer Portal](https://portal.gcore.com/accounts/reports/dashboard), navigate to **FastEdge** and choose the relevant page: **HTTP Applications** or **CDN Applications**.

2\. On the **Templates** page, find the template you want to use to create an application.

3\. Click the three-dot icon next to open template settings and select **Create app from template**.

4\. Proceed with the application configuration as described in the relevant guide:

* [Create an HTTP app from a template](/fastedge/getting-started/create-fastedge-apps#deploy-an-app-from-a-template)
* [Create a CDN app from a template](/fastedge/getting-started/integrate-cdn-with-fastedge#deploy-from-the-template)
