# Cloud Shell

You can run and test a an application directly within Cloud Shell. Cloud Shell has many tools pre-installed, such OpenJDK, Maven, Gradle, and more. Cloud Shell is meant for development and not meant for production or long running processes.

## Getting Started

### Clone

```bash
cd $HOME
git clone https://github.com/saturnism/jvm-helloworld-by-example
cd jvm-helloworld-by-example/helloworld-springboot-tomcat
```

### Build

```bash
./mvnw package
```

### Run

{% tabs %}
{% tab title="Plugin" %}

```bash
./mvnw spring-boot:run
```

{% endtab %}

{% tab title="JAR" %}

```bash
java -jar target/helloworld.jar
```

{% endtab %}
{% endtabs %}

### Connect

From Cloud Shell, click **Web Preview**, then click **Preview on port 8080.**

![Web Preview](/files/-MEYivaxAseYveaxV1w9)


---

# 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://spring-gcp.saturnism.me/getting-started/helloworld/cloud-shell.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.
