# Patch Management

### Creating an Application Patch

```bash
$ cloudio create-patch -a my-app
```

Running the above command generates an application patch as a zip file. The zip contains all the metadata in various .json & .js files. You can extract and check into your source control system e.g. GitHub.

![](https://754235390-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MZ64BhrvkgPMyL9F3tk%2F-MfKHbfFF1iDK1W5Ncl_%2F-MfKIlAfUUhUtvmTin5v%2Fimage.png?alt=media\&token=0ae7d9bb-47c1-40e3-9a48-9a543d6ce754)

> Example Output

![](https://754235390-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MZ64BhrvkgPMyL9F3tk%2F-MfKHbfFF1iDK1W5Ncl_%2F-MfKIXZHMYQX2s2RMACb%2Fimage.png?alt=media\&token=a9ced7fb-1d05-4184-8e11-196883b38941)

### Verifying an Application Patch

Once a patch is generated from a source instance, you can verify it against a target instance to review the changes to be applied to the target instance.

```bash
$ cloudio verify-patch -a my-app
```

![](https://754235390-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MZ64BhrvkgPMyL9F3tk%2F-MfKRUSd9asvNE8EAATS%2F-MfKT-_5axEdOjTi9Qzg%2Fimage.png?alt=media\&token=1c5939b4-a9a3-439e-8be1-c4dd6431a0e3)

### Applying an Application Patch

Once reviewed and approved, you can apply the patch using the following command

```bash
$ cloudio patch -a my-app
```

![](https://754235390-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MZ64BhrvkgPMyL9F3tk%2F-MfKRUSd9asvNE8EAATS%2F-MfKTS3v2Ve7ld__XhuG%2Fimage.png?alt=media\&token=8e997876-a67b-42aa-bdbd-875f0d1bac98)

{% hint style="info" %}
You must authenticate with a user having a `Patch Administrator` role assigned to perform the above operations.
{% endhint %}
