Static Websites on Tilda

Tilda supports deploying any static website, whether it's built with a static site generator or just plain HTML, CSS, and JavaScript files.

Prerequisites

You'll need to create a "Project" and a "Site" in Tilda dashboard before you can deploy your static website. Use "slugs" for those values in the deployment command as shown in the Deployment section below.

Please follow the getting started with Tilda guide to understand how to begin. If you haven't installed Tilda CLI yet, follow the CLI installation guide.

Building and Deploying

To deploy a static website, you'll need to specify the directory containing your static files using the --rootStaticDir option. This directory should contain your built static files (HTML, CSS, JavaScript, images, etc.).

Common Static Directory Locations

Build Command

Use the following command to build your static website for deployment:

Commands
Bash
tilda build static --rootStaticDir ./dist

Replace ./dist with the directory containing your static files.

Deployment

After building your static website, deploy it to Tilda using:

Commands
Bash
tilda deploy --project myproject --site mysite

Replace myproject and mysite with your actual project and site slugs from the Tilda dashboard.

Features