# Deploy your first app

https://docs.serverpod.dev/cloud/getting-started/launch

Get your Serverpod app live on Cloud in a few minutes.

## Before you start

You need:

- The Serverpod Cloud CLI set up and authenticated. See [Set up the Cloud CLI](https://docs.serverpod.dev/cloud/getting-started/installation.md).
- A Serverpod project on your machine. See [Create your project](https://docs.serverpod.dev/quickstart.md#create-your-project).

## Launch your project

From your project's root directory:

```bash
serverpod cloud launch
```

It creates a Cloud project and ships its first version in these steps:

1. **Choose the project.** If your account has no projects, the command asks *"Open the browser and create a new Serverpod Cloud project?"* Press Enter to accept. If you already have projects, it lists them, with a last option to create a new project in the browser.
2. **Create the project in the console.** If you chose to create a new project, the console's **New project** page opens. The project ID is pre-filled from your pubspec name and becomes part of your default URL, such as `my-app.serverpod.space`. The database is switched on if your server config has a `database` section. Change either if you need to, then choose the project's [plan](https://docs.serverpod.dev/cloud/concepts/plans-and-billing.md). Select **Launch Project** and return to the terminal.
3. **Pre-deploy hooks.** The command adds `serverpod generate` as a pre-deploy hook, plus `serverpod run flutter_build` if your server's `pubspec.yaml` defines that script. See [Deployment hooks](https://docs.serverpod.dev/cloud/concepts/deployment-hooks.md) for details.
4. **Custom passwords.** If `config/passwords.yaml` has custom passwords, the command asks which ones to copy to Cloud. Passwords from the `production` and `shared` sections are preselected. Set the rest later with `serverpod cloud password set`.

The command then writes a `scloud.yaml` linking subsequent commands to the project, uploads your code, and deploys.

## Watch the deployment

The deployment runs in three stages. The terminal updates each one as it progresses:

```text
Upload successful.
Cloud build successful.
Rollout successful. 🚀
```

When you see the rocket on **Rollout**, your app is live. The command then prints your project ID and the URLs your project is reachable at:

```text
Your Serverpod Cloud project ID is: my-app

When the server has started, you can access it at:
   Web:      https://my-app.serverpod.space/
   API:      https://my-app.api.serverpod.space/
   Insights: https://my-app.insights.serverpod.space/
```

If the deployment fails, see [Recover from a failed deploy](https://docs.serverpod.dev/cloud/guides/recover-from-a-failed-deploy.md).

## Open your app

In your browser, open the Web URL the command printed:

```text
https://my-app.serverpod.space/
```

Your Flutter web app loads at the root. If the app wasn't built before the upload, a **Flutter web app not built** page loads instead. Projects created with the website option show a landing page at the root, with the Flutter web app under `/app`.

## What you've done

You've created a Cloud project and shipped its first version. From here:

- Every change you make ships with `serverpod cloud deploy`. See [Deployments](https://docs.serverpod.dev/cloud/concepts/deployments.md) for the full deploy lifecycle.
- To use your own domain instead of `<project>.serverpod.space`, see [Custom domains](https://docs.serverpod.dev/cloud/concepts/custom-domains.md).
