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

# site deploy

> Deploy built site files to Base44 hosting

Deploy your built frontend app to Base44's hosting platform. The command uploads your build output to Base44, making your site available at your app's URL.

To build your frontend and deploy in one step, pass `--build`. Otherwise, ensure your built files are already in the directory specified by `site.outputDirectory` in your [`config.jsonc`](https://docs.base44.com/developers/backend/overview/project-structure#config-jsonc).

> [!NOTE]
>
> Deploying with `base44 site deploy` hosts your frontend at your app's URL, but it doesn't create a preview. To preview your frontend, run it locally, or open the live site with [`base44 site open`](https://docs.base44.com/developers/references/cli/commands/site-open).

## Usage

```bash theme={null}
base44 site deploy
```

## Flags

| Flag | Description |
| - | - |
| `-y, --yes` | Skip the confirmation prompt. |
| `--build` | Build the site before deploying. Runs `site.buildCommand` with `VITE_BASE44_APP_ID` injected. |
| `--no-build` | Deploy without building, skipping the interactive build prompt. |

## Configuration

The `site.outputDirectory` in your [`base44/config.jsonc`](https://docs.base44.com/developers/backend/overview/project-structure) tells the CLI where your build tool outputs the compiled frontend files so that it knows which files to deploy to Base44 hosting.

```jsonc theme={null}
{
  "name": "my-project",
  "site": {
    "outputDirectory": "./dist"
  }
}
```

## See also

* [`build`](https://docs.base44.com/developers/references/cli/commands/build): Build the site with the app ID injected before deploying
* [`site open`](https://docs.base44.com/developers/references/cli/commands/site-open): Open the deployed site in your browser
* [Project Structure](https://docs.base44.com/developers/backend/overview/project-structure.md): How project files are organized
* [Quickstart - React](https://docs.base44.com/developers/backend/quickstart/templates/quickstart-react-template.md): Build a full-stack React app with Base44


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