# Play-Console

You can manage the complete development cycle of a Play application with sbt.

/to build and run Play, change to the directory of your project and run:

```plaintext
sbt run
```

To launch sbt in the interactive mode, change into the top-level of your project and enter sbt with no arguments:

```plaintext
sbt
```

In development mode sbt launches Play with the auto-reload feature enabled. When you make a request, Play will automatically recompile and restart your server if any files have changed. If needed the application will restart automatically.

```plaintext
run
```

You can also compile your application without running the HTTP server. The compile command displays any application errors in the command window.

```plaintext
compile
```

You can run tests without running the server. For example, in interactive mode, use the test command:

```plaintext
test
```

Type console to enter the Scala console, which allows you to test your code interactively:

```plaintext
console
```

You can also use sbt features such as triggered execution.

```plaintext
~ compile
```

```plaintext
~test
```

```plaintext
~run
```

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1693650640183/040ff6bb-6718-43d1-afe1-9d4263b904e7.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1693650667650/852361e2-43f2-4eed-b8ee-737e0ec72aab.png align="center")
