# Uploading app templates

> To enable developers to create process apps from app templates, these app templates must be made available in Process Mining (Automation Suite). This page describes how to upload app templates in Process Mining (Automation Suite).

## Introduction

To enable developers to create process apps from app templates, these app templates must be made available in Process Mining (Automation Suite). This page describes how to upload app templates in Process Mining (Automation Suite).

### Process Mining app template upload tool

The Process Mining App Template Upload .zip file contains the `processmining-app-template-upload.sh`. The `processmining-app-template-upload.sh` is a bash script that allows you to upload Process Mining app templates inside the Process Mining deployment in Automation Suite. It connects to the Kubernetes cluster to obtain the signing key for the app registry API. The app templates, which is a **.zip** file is uploaded to the app registry using the signing key for authentication.

## Prerequisites

The environment where you use the Process Mining App Template Upload tool must be able to run a bash script and have the following tools:

* `kubectl` configured with a connection to the cluster;
* `jq 1.6`

It is assumed that you have:

* an Automation Suite environment with Process Mining installed;
  :::note
  Automation Hub must also be enabled on your Automation Suite installation.
  :::

* access to the Kubernetes cluster is needed via the `kubeconfig` file;
* access to the cluster;
* the `Cluster.config` file downloaded on the cluster machine you are going to use to upload the app templates.

## Uploading an App Template

Follow these steps to make an app template available in **Process Mining** (Automation Suite).

1. Go to your UiPath® Customer portal and download the `.zip` package for the app template for your process and source system that you want to upload to **Process Mining** (Automation Suite).
   :::note
   Consult your UiPath® contact if you need access to the UiPath® Customer portal.
   :::
2. Download and extract the [Process Mining App Template Upload utility](https://documentationpicturerepo.blob.core.windows.net/files/Process_Mining/2023.10/processmining-app-template-upload.zip).
3. Run the `processmining-app-template-upload.sh` in the shell script where you have `kubectl` set up.

Use the following arguments.

   | Argument | Description |
   | --- | --- |
   | file | The name and location of the downloaded app template `.zip` file. |
   | type | The process app type of the app template. Use the first part of the name of the `.zip` file. For example, `uipath.o2c`. |
   | version | The version of the app template. Use the second part of the name of the `.zip` file. For example, `1.2.5`or `2311.129.0`. |
   | organizationname | The name of your organization. |
   | tenantname | The name of your tenant to publish the app template. |
   | tenantid | The ID of the tenant to publish the app template. This is optional if the argument global is used. |
   | global | To upload the app template and make it available on all tenants in **Process Mining (Automation Suite)**.  **Note** the global argument can be omitted when the tenantid argument is specified. |
   | insecure | This option connects to the cluster without validating the SSL certification. Note: using this option the connection won't be secure. |

### Example

`./processmining-app-template-upload.sh --file ./uipath.o2c.1.2.5.zip --type uipath.o2c --version 1.2.5 --organizationname yourorganization --tenantname defaulttenant --global`
