Tilda CLI

Tilda CLI allows you to build and deploy your project to our platform.:

Installation

You can use Tilda CLI without installing by prefixing commands with npx @tildacloud/cli. For example:

Command
Bash
npx @tildacloud/cli login

However, we recommend installing the CLI globally for easier access to commands:

Command
Bash
npm install -g @tildacloud/cli

tilda login

Follow the instructions in command output to login to your Tilda account with CLI.

Command
Bash
tilda login

tilda build nextjs

Build your Next.js project with the following command:

Command
Bash
tilda build nextjs

Next.js Partial Prerendering (PPR) Support

To enable edge-accelerated Partial Prerendering for Next.js 15 canary or newer, add the --ppr flag:

Command
Bash
tilda build nextjs --ppr=15-canary-v1

This feature requires the latest version of the Tilda CLI. For more information about PPR support, see our blog post on Edge-Accelerated Next.js PPR.

tilda build nuxt

Build your Nuxt project with the following command:

Command
Bash
tilda build nuxt

tilda build svelte

Build your SvelteKit project with the following command:

Command
Bash
tilda build svelte

tilda build astro

Build your Astro project with SSR (Node.js adapter) using:

Command
Bash
tilda build astro

tilda build static

Build and deploy static websites using this command. You'll need to specify the directory containing your static files using the --rootStaticDir option:

Command
Bash
tilda build static --rootStaticDir ./dist

For Astro static websites, the directory is typically ./dist/client:

Command
Bash
tilda build static --rootStaticDir ./dist/client

tilda deployment-key create

Create a deployment key for CI/CD or automated deployments:

Command
Bash
tilda deployment-key create --project myproject --site mysite

The command will output a deployment key environment variable you can use in your CI/CD environment.

tilda deploy

Deploy your project to Tilda with the following command:

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