Tilda CLI allows you to build and deploy your project to our platform.:
You can use Tilda CLI without installing by prefixing commands with npx @tildacloud/cli
. For example:
npx @tildacloud/cli login
However, we recommend installing the CLI globally for easier access to commands:
npm install -g @tildacloud/cli
Follow the instructions in command output to login to your Tilda account with CLI.
tilda login
Build your Next.js project with the following command:
tilda build nextjs
To enable edge-accelerated Partial Prerendering for Next.js 15 canary or newer, add the --ppr
flag:
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.
Build your Nuxt project with the following command:
tilda build nuxt
Build your SvelteKit project with the following command:
tilda build svelte
Build your Astro project with SSR (Node.js adapter) using:
tilda build astro
Build and deploy static websites using this command. You'll need to specify the directory containing your static files using the --rootStaticDir
option:
tilda build static --rootStaticDir ./dist
For Astro static websites, the directory is typically ./dist/client
:
tilda build static --rootStaticDir ./dist/client
Create a deployment key for CI/CD or automated deployments:
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.
Deploy your project to Tilda with the following command:
tilda deploy --project myproject --site mysite