> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gamavas.fun/llms.txt
> Use this file to discover all available pages before exploring further.

# Deploy from a terminal

> Deploy from your machine or any CI with one command and a deploy token.

The deploy script runs anywhere with Node 20 or newer, with nothing to install. Use it from your own machine, GitLab CI, Jenkins or any other pipeline.

**1. Make a deploy token**

On your project's page at [gamavas.fun/host](https://gamavas.fun/host), make a deploy token.

**2. Get the script**

Download `index.mjs` from [github.com/Gamavas/deploy-action](https://github.com/Gamavas/deploy-action):

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl -fsSLO https://raw.githubusercontent.com/Gamavas/deploy-action/v1/index.mjs
```

**3. Deploy**

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
GAMAVAS_DEPLOY_TOKEN=gvd_… node index.mjs --dir dist            # goes live
GAMAVAS_DEPLOY_TOKEN=gvd_… node index.mjs --dir dist --preview  # preview only
```

`--dir` is the folder with `index.html` in it. The script prints the address of the deploy.

Only files Gamavas doesn't already have are uploaded, so redeploys are quick. Keep the token in your CI's secret store, never in your repository.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.