Skip to content
New: Customize your theme with an AI assistant. Read the guide

Installation Guide

Skill level: Beginner · Time: 10 minutes

You need two things on your computer: Node.js (the program that runs the theme) and a code editor to open the files. If you have never used a terminal before, read Tools You Need first.

Requirements

  • Node.js 22.12 or later (the engines field in package.json)
  • npm, which comes with Node.js. Covena ships a package-lock.json, so use npm rather than Yarn or pnpm
  • A code editor. VS Code is a good free choice. When you open the folder, it suggests the Astro, TOML, and Tailwind CSS extensions the theme recommends

Install Node.js

Download the LTS installer from nodejs.org and run it. Then open PowerShell and check the version:

Terminal window
node -v

The result must be v22.12.0 or higher.

Run Covena On Your Computer

  1. Unzip the download and move the theme folder to wherever you keep your projects. Open it in your code editor. It is the folder that contains package.json and AGENTS.md.

  2. Open a terminal inside that folder. In VS Code, use Terminal → New Terminal.

  3. Install the dependencies (only needed once, and again after updates):

    Terminal window
    npm ci

    npm ci installs the exact versions listed in package-lock.json. npm install works too.

  4. Start the development server:

    Terminal window
    npm run dev
  5. Open http://localhost:4321/ in your browser. You see Home 1. The other two homepages are at /home-corporate/ and /home-family/, and the French and Arabic sites start at /fr/ and /ar/.

npm run dev turns src/config/config.toml into .astro/config.generated.json, starts the site, and watches config.toml for changes. Never edit the generated file: your changes go in config.toml.

Leave the terminal running while you work. When you save a file, including config.toml, the browser updates on its own. Press Ctrl + C in the terminal to stop the server.

Port 4321 already in use? Add another port after --:

Terminal window
npm run dev -- --port 4322

Build And Preview The Production Site

Terminal window
npm run build
npm run preview

npm run build writes the finished site to the dist/ folder. npm run preview builds it again and serves it at http://localhost:4321/, so you can test it as visitors will see it.

On a fresh copy, the build ends with a yellow [site] warning: the site URL is not set yet, so the sitemap is skipped and links in llms.txt, RSS, and social previews point at the build host. That is expected on your computer. Set baseUrl in [site] before you deploy (Quick Start, step 1).

The forms also run in demo mode until you connect them: they check the fields, then say nothing was sent. See Forms.

Every Script, In Plain Words

CommandWhat it does
npm run devStarts the local site with live reload, and converts config.toml each time you save it
npm run buildBuilds the production site into dist/. Warns while the site URL is not set
npm run previewBuilds, then serves the production site locally
npm run astro-checkChecks components and content files for type and schema mistakes. Run it after you change code or a content file’s fields
npm run testRuns the theme’s unit tests
npm run verifyRuns every check: astro-check, the tests, formatting, the build, then the link, route, language, section, and hreflang checks on the built site. Run it before you deploy
npm run formatTidies the formatting of files in src/
npm run format:checkReports files in src/ whose formatting format would change, without changing them
npm run generate-faviconsCreates every favicon size from [site.favicon] image in config.toml
npm run generate-multilingual-contentAdds a language: it copies your default language’s content, menu, and labels. See Internationalization
npm run remove-multilingualDeletes the content of every language except your default one. Read Internationalization first
npm run deploy:cfUploads dist/ to Cloudflare Pages with Wrangler (see Deployment)
npm run toml:watchTurns config.toml into .astro/config.generated.json. build, preview, astro-check, and test already run it

Next: Quick Start, to make the site yours in about 30 minutes.

Type something to search...