# Upgrade

To upgrade your hybrid environment please follow the steps below.

#### Download the Update Script

```bash
$ cd threarirx-software
$ wget https://raw.githubusercontent.com/threatrix/hybrid/master/update
$ chmod +x ./update
```

#### Usage

```bash
$ ./update -h


      Welcome to Threatrix Hybrid Update Utility

         Fri Aug 11 18:10:38 UTC 2023


Usage:  update -h -u <ux tag> -a <app tag> -p <port number>
 -h : Help
 -u <ux tag>: Version of the UX image you want to upgrade to. Default is latest
 -a <app tag>: Version of the APP image you want to upgrade to. Default is latest
 -p <port number>: Port number which threatrix applcation can use. Default is 80 or 443 based on -s option

```

#### Upgrade Your Environment

```bash
$ ./update

      Welcome to Threatrix Hybrid Update Utility

         Fri Aug 11 18:15:32 UTC 2023


 Updating your Hybrid Environment with the following components:

 Threat Center:  latest
 APP          :  latest

 Do you want to continue? ( y  or  n ) y

 Proceeding with install...

 Threatrix Network exists!
 Updating Threatrix App and Threat Center....
 Restarting Threatrix App and Threat Center containers....

 Upgraded the following Threatrix components in your Hybrid Environment:

 Threat Center:  from  23.08.11.1  to  23.08.11.1
 APP          :  from  23.08.11.1  to  23.08.11.1

 Use the following URL to access Threat Center:  http://hybrid-upgrade.us-central1-a.c.core-247502.internal:80/



      Threatrix Hybrid update complete!

         Fri Aug 11 18:16:09 UTC 2023


```

Now your upgraded environment is ready for use.


---

# 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://docs.threatrix.io/hybrid/upgrade.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.
