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
enginesfield inpackage.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:
node -vDownload the installer from nodejs.org, or use Homebrew:
brew install nodenode -vInstall Node.js with your package manager or the official installer, then check the version:
node -vThe result must be v22.12.0 or higher.
Run Covena On Your Computer
-
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.jsonandAGENTS.md. -
Open a terminal inside that folder. In VS Code, use Terminal → New Terminal.
-
Install the dependencies (only needed once, and again after updates):
Terminal window npm cinpm ciinstalls the exact versions listed inpackage-lock.json.npm installworks too. -
Start the development server:
Terminal window npm run dev -
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 --:
npm run dev -- --port 4322Build And Preview The Production Site
npm run buildnpm run previewnpm 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
| Command | What it does |
|---|---|
npm run dev | Starts the local site with live reload, and converts config.toml each time you save it |
npm run build | Builds the production site into dist/. Warns while the site URL is not set |
npm run preview | Builds, then serves the production site locally |
npm run astro-check | Checks components and content files for type and schema mistakes. Run it after you change code or a content file’s fields |
npm run test | Runs the theme’s unit tests |
npm run verify | Runs 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 format | Tidies the formatting of files in src/ |
npm run format:check | Reports files in src/ whose formatting format would change, without changing them |
npm run generate-favicons | Creates every favicon size from [site.favicon] image in config.toml |
npm run generate-multilingual-content | Adds a language: it copies your default language’s content, menu, and labels. See Internationalization |
npm run remove-multilingual | Deletes the content of every language except your default one. Read Internationalization first |
npm run deploy:cf | Uploads dist/ to Cloudflare Pages with Wrangler (see Deployment) |
npm run toml:watch | Turns 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.