# Deploy a site

> Deploy a built static site, a Node.js or a Python app with vantuly deploy.

Source: https://vantuly.com/docs/cli/deploy

See your servers:

```sh
vantuly servers
```

Build the site and deploy its output folder:

```sh
npm run build
```

```sh
vantuly deploy dist
```

```text
Creating a static site on web-1 ...
Packing dist ...
Uploading 42 files (1.3 MB) ...
Deploying ...
https://my-blog.vantuly.site
```

## The first deploy

The first deploy of a folder creates a site:

- **On the team's only ready server.** With more than one, pass `--server NAME` (a name or ID).
- **On a free `https://NAME.vantuly.site` address.** NAME comes from the folder; for `dist`, `build`, `out`, `public`, `_site` and `site` it is the project folder's name. `--name shop` gives `shop.vantuly.site`. If the name is taken, another free one is picked: the URL printed at the end is the address.
- **Or on your own domain** with `--domain example.com`.

It also writes `.vantuly/project.json` in the folder you run the command from (with a `.gitignore`, so it is not committed). Later deploys from that folder update the same site, without `--server`:

```sh
vantuly deploy dist
```

`--site ID` deploys to any site of the team. `--no-wait` returns once the upload is done.

## What gets deployed

- **A built static site:** a folder with `index.html` at the top. Astro, Vite, SvelteKit (`adapter-static`), Gatsby, Eleventy and VitePress projects must be built first. The CLI never runs your build; it tells you which folder to pass: `dist` (Astro, Vite), `build` (SvelteKit), `public` (Gatsby), `_site` (Eleventy), `.vitepress/dist` (VitePress). Next.js is supported only as a static export (`output: "export"`, then `vantuly deploy out`).
- **Node.js and Python apps** deploy as source and are built on the server: a `package.json` project runs `npm ci && npm run build`; a `requirements.txt` or `pyproject.toml` project is installed with uv. See [Node.js](/docs/apps/sites/nodejs) and [Python](/docs/apps/sites/python).
- The type is detected. `--type static|node|astro|python` sets it.

Each deploy is a new release. The switch is atomic, and when a build fails the live site keeps running.

## What is left out

Never uploaded: `.git`, `node_modules`, `.vantuly`, `.env` files (`.env.example` and the like stay) and Finder files. Add more in `.vantulyignore`, one pattern per line, `#` for comments:

```text
# a name matches at any depth
*.log
# a pattern with / matches from the top
docs/drafts
# a trailing / matches folders only
tmp/
```

There is no `!` negation. Links and special files are refused. The upload may be at most 200 MB.

Set secrets as environment variables instead of shipping `.env` files: see [commands](/docs/cli/commands#environment-variables).
