# 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.

![](/files/-MfKIlAfUUhUtvmTin5v)

> Example Output

![](/files/-MfKIXZHMYQX2s2RMACb)

### 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
```

![](/files/-MfKT-_5axEdOjTi9Qzg)

### Applying an Application Patch

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

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

![](/files/-MfKTS3v2Ve7ld__XhuG)

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://next-docs.cloudio.io/app-deployment/patch-management.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
