# Deploy Service

> Upload a service archive to AirHost by hand, as a new service (Deploy Service, Mac only) or as a new version of one (Update Service).

Source: https://air.build/docs/screens/platform/deploy-service/

**Deploy Service** uploads a `.tar.gz` service archive to AirHost as a new service; the same sheet, titled **Update Service**, uploads a new version of a service you already have. Your Agents normally deploy for you; this is for deploying by hand.

> [!NOTE]
> **Deploy Service** (a new service) is only on the Mac. **Update Service** opens on iPhone, iPad and Mac.

## Open it

| To | Do this |
| --- | --- |
| Deploy a new service (Mac) | In [Hosting](https://air.build/docs/screens/platform/hosting/), click **Deploy** in the inspector's bar under the page. It appears once the tab lists at least one service; before that, ask your Agents. |
| Update a service (everywhere) | In [Hosting](https://air.build/docs/screens/platform/hosting/), touch and hold the service's row (on the Mac, right-click it) and choose **Deploy New Version…**. |
| Update a service (Mac) | On the [Service page](https://air.build/docs/screens/platform/service-page/), click **Deploy New Version…**. |

It opens as a sheet on every device.

## What's on it

| Part | What it shows or does | Default |
| --- | --- | --- |
| **Name** | The service's name. Can't be changed in **Update Service**. | Empty; the service's name when updating |
| **Database** | The database this service uses, chosen from the app's databases. Choosing one connects the service to it. | **None**; the service's database when updating |
| **Archive** | The file you chose. | **Not Selected** |
| **Choose Archive…** | Opens the file picker for a `.gz` file. | — |
| **Cancel** | Closes without deploying. | — |
| **Deploy** | Uploads the archive. Available once there is a name and an archive. | — |

Under the fields: "Choose a .tar.gz service archive up to 10 MB. Selecting a database connects this service to it."

The name can't be empty, can't be `.` or `..`, and can't contain `/`, `\`, `%`, `?` or `#`; **Deploy** stays dimmed until it fits.

The new deployment becomes **Current** in [Deployment History](https://air.build/docs/screens/platform/deployment-history/).

## Messages

| Message | When | What to do |
| --- | --- | --- |
| "The archive must be between 1 byte and 10 MB." | The file is empty or larger than 10 MB. | Choose a smaller archive. |
| The reason, with **Try Again** | The file couldn't be read, or the deployment was refused. The sheet stays open. | Fix what it says. **Try Again** opens the file picker again. |
