# Versio.io Managed operation

### Startup

If the installation is finished, the Docker images are available and your customizing is ready, the Versio.io instance can be started:

```bash
# Start up the Versio.io platform
bash startup.sh
```

*Command: Start a Versio.io instance*

Below is a sample output for starting a Versio.io instance:

![Versio.io Managed Installer](<https://www.versio.io/img/screenshots/installation/versio-io-managed-installation.gif>)

*Image: Versio.io Managed installer*

### Status

Get a detailed status of the operational environment and execution status of the Versio.io platform:

```bash
# Check the operating state of the Versio.io platform
bash status.sh
```

*Command: Status of the Versio.io platform*

### Shutdown

To shut down a Versio.io instance, the following command must be executed:

```bash
# Shut down the Versio.io platform
bash shutdown.sh
```

*Command: Stop a Versio.io instance*

Then, for example, updates of Versio.io Docker images or other maintenance work can take place before Versio.io is started again.

### Update

**It is recommended to make a backup before each update!**

To update a Versio.io Managed instance, the following commands should be executed in the `/opt/versio.io/install` folder as the `versio` user:

```bash
# Update the container images and the database schema
bash update.sh
```

*Command: Update a Versio.io Managed instance*

If the application stack and the database of the Versio.io platform are operated on separate server instances, the update should be carried out as follows:

```text
# LOGIN APP STACK HOST!

# Shutdown app stack
bash shutdown.sh

# SWITCH TO DATABASE HOST!

# Update database stack
bash update.sh

# SWITCH TO APP STACK HOST!

# Update app stack
bash update.sh
```

*Command: Update a Versio.io Managed instance with separate app and database stacks*

### Update AI content

Versio.io provides artificial intelligence (AI) content for the assessment of product lifecycles and vulnerabilities. This content changes daily and should therefore be updated daily. We recommend running the update as a cron job.

```bash
# Update the artificial intelligence content repositories (product, lifecycle, vulnerability etc.)
bash /opt/versio.io/install/utils/update-ai-rep.sh
```

*Command: Update AI content on the command line*

```bash
# Cron job to update the artificial intelligence content repositories every day. Please configure it for user 'versio'!
0 6 * * * /bin/bash /opt/versio.io/install/utils/update-ai-rep.sh > /opt/versio.io/install/utils/update-ai-rep.log 2>&1
```

*Command: Update AI content as a cron job*

> [!WARNING]
>
> **Attention**
>
> Run the script or cron job as the `versio` user on the `standalone` or `application` host (see configuration of environment variable `VERSIO_DEPLOYMENT_PROFILE`).
