---
title: Deploys and versions
description: What a deploy uploads, how app names and addresses work, and how versions and rollback keep you safe.
---

## What an app is

An app is a folder with an `index.html` at its top. Everything else in the folder, such as scripts, styles, images and fonts, is served alongside it. Shed serves the files as they are: there's no build step, and nothing runs on the server.

If your app has a build step (React, Vue, Svelte and so on), build it first and deploy the output folder, such as `dist`:

```sh
$ npm run build && npx shedcloud deploy dist --name standup
```

## Deploy

```sh
$ npx shedcloud deploy standup
Deployed standup v1 (3 files)
  https://standup.shed.example.com/
  Access: people you add
```

The first deploy creates the app and makes you its owner. Every later deploy of the same folder makes a new version at the same address, and the address serves the newest version straight away.

### What gets uploaded

Everything in the folder and its subfolders, except:

- files and folders whose names start with `.` (but `.well-known` is kept)
- `node_modules`, `.git`, `.svn`, `.hg` and `__pycache__`
- `shed.json`, `.DS_Store` and `Thumbs.db` at the top of the folder

A deploy can be up to 50 MB and 2,000 files. See [Limits](limits.md).

## Names and addresses

The app's name is its subdomain: the `standup` app lives at `standup.shed.example.com`. The first deploy takes the name from the folder, lowercased with anything other than letters and digits turned into `-`. Pick another with `--name`:

```sh
$ npx shedcloud deploy ./build --name team-standup
```

The name is saved in a `shed.json` file in the folder, so later deploys go to the same app even if you rename the folder. Commit `shed.json` if others deploy the same app.

On Shed Cloud, apps on Cloud Free get a short suffix: `standup` is published at an address like `standup-k7f2`. Good names aren't first come, first served, and no free app can look like an official one. The suffix is yours: deploying `standup` again updates the same app, and commands such as `npx shedcloud share standup` find it by the name you gave it. Team apps, and self-hosted servers unless they turn it on with `SHED_FREE_SUFFIX`, keep the name as you asked.

`shed.json` also remembers the app's `team`, if you deployed it into one with `--team` (see [Teams](teams.md)). It can also hold `rules`, which limit who changes records in a collection: see [Only authors change their records](sdk.md#only-authors-change-their-records).

Deploying a build's output folder (`dist`, `build`, `out`, `_site` or `www`, next to a `package.json`) works the same, except that `shed.json` goes in the project folder above it, since every build wipes the output folder, and the app is named after the project rather than `dist`.

Names are 1 to 40 lowercase letters, digits or dashes, and can't start or end with a dash. Some are reserved for Shed itself or for names that could pass for it, such as `www`, `api`, `admin`, `login`, `docs`, `help`, `support`, `status`, `security`, `mail` and `shed`; Shed says so if you pick one. An app that already had a name before it was reserved keeps it and still deploys.

:::note
**"is taken"** means someone else has an app with that name and you can't open it. If you can open it but aren't an owner, Shed tells you who to ask instead.
:::

## How files are served

- `/` serves `index.html`, and a folder path serves the `index.html` inside it.
- A path with no file extension that doesn't match a file serves the top `index.html`. That makes client-side routers work (`/settings`, `/items/42`).
- Files are sent with `Cache-Control: no-cache`, so people get a new version on their next load.
- Everything under `/_shed/` belongs to Shed: the SDK, the kit, sign-in and the data API. Don't put your own files there.

## Versions and rollback

Shed keeps your last 20 deploys and deletes older ones. See them with `info`:

```sh
$ npx shedcloud info standup
  v3* 2026-12-03T09:14:02.120Z by ana@example.com, 3 files
  v2  2026-12-02T16:40:51.004Z by ana@example.com, 3 files
  v1  2026-12-01T11:02:13.876Z by ana@example.com, 2 files
```

The `*` marks the live version. Roll back to any of them:

```sh
$ npx shedcloud rollback standup v2
standup now serves v2 (was v3). Data is unchanged.
Undo with: npx shedcloud rollback standup 3
```

Owners can do the same from the dashboard: open **Manage** and choose **Restore** next to a version.

**Rollback changes code, never data.** Records written by v3 stay when v2 is live, so keep new versions able to read old records, and old versions tolerant of fields they don't know.

## Delete an app

```sh
$ npx shedcloud rm standup --yes
```

This deletes the app, every version and all of its data, and frees the name. Only the person who created the app can delete it. There is no undo.
