# Google Cloud Compute Engine VM instance

To deploy UI Bakery to a Google cloud compute engine virtual machine, follow these steps:

1. Open [Google Cloud Console](http://console.cloud.google.com/). On your project page, select `Navigation Menu` - `Compute Engine` - `VM instances.`
2. Select `Create an instance` - `New Vm instance.`
3. Input `bakery` in `Name`. Select region and zone.
4. Select `E2` in `Series` field and `e2-medium` in `Machine Type` field in the block `Machine configuration - Machine family - General-purpose.`
5. Press `Change` button in block `Boot Disk.`
6. Select `Ubuntu` in the `Operation System`, `Ubuntu 18.04 LTS` or higher in the `Version` and input `20` in `Size (GB)`. Click `Select` button.
7. Click `Create` button at the bottom of the page.
8. On your project page, select `Navigation Menu` - `VPC Network` - `Firewall` and press `Create a firewall rule` button.
9. Input `bakery` in `Name` and select `All instances in the network` in `Targets.`
10. Input `0.0.0.0/0` in `Source IPv4 ranges.`
11. Go to the block `Protocols and ports`. Select `Specified protocols and ports` and `TCP`, input `{BakeryPort}` (use 3030 by default, you will need to select the same port during UI Bakery installation later) in the `Port.`
12. Click `Create` button at the bottom of the page.
13. On your project page, select `Navigation Menu` - `Compute Engine` - `VM instances.`
14. Select VM instance `Bakery` and press `SSH - Open in Browser Window`. This will open the `SSH-in-browser` window.
15. Run this command preferably to download, install and launch UI Bakery:

    ```bash
    curl -k -L -o install.sh https://raw.githubusercontent.com/uibakery/self-hosted/main/install.sh && bash ./install.sh
    ```
16. Upon request, enter the previously received license code, hosting URL - External IP address VM Instance, and port ({BakeryPort} which you selected in the earlier steps 3030 by default).
17. After the installation is completed and launched, enter the UI Bakery from a browser on your local machine at http\://{External IP address Vm Instance}:{BakeryPort}.


---

# 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.uibakery.io/on-premise/install-and-update/installing-on-premise-version/google-cloud-compute-engine-vm-instance.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.
