Recommended: create-varsha
The official CLI scaffolds a project with dependency installation and git init in one command.
varsha is a premium website starter template built on Astro. This guide covers prerequisites, installation methods, and running your first local development server.
Before installing varsha, make sure you have the following tools:
| Tool | Minimum version | Notes |
|---|---|---|
| Node.js | 18.17.0 or 20.3.0+ | LTS recommended |
| npm | 9.0+ | Bundled with Node.js |
| A code editor | — | VS Code with the Astro extension recommended |
| Git | 2.0+ | Required for cloning and deployment workflows |
You can check your Node.js version by running:
node --versionChoose one of the following methods to create a new varsha project.
Recommended: create-varsha
The official CLI scaffolds a project with dependency installation and git init in one command.
degit
degit downloads the latest template without Git history, giving you a clean starting point.
Git clone
Clone the full repository if you want to contribute back or preserve Git history.
npx create-varsha my-varsha-sitecd my-varsha-siteThe CLI automatically installs dependencies and initializes a git repository. You can also use npm create varsha, yarn create varsha, pnpm create varsha, or bunx create-varsha.
Options:
--pm <manager> — Use a specific package manager (npm, yarn, pnpm, bun)--no-install — Skip dependency installation--no-git — Skip git initialization--template <branch> — Use a specific branch or tagnpx degit yethikrishna/web-ui-template my-varsha-sitecd my-varsha-sitenpm installThis creates a new directory called my-varsha-site with a fresh copy of the varsha starter, excluding the original Git history.
git clone https://github.com/yethikrishna/web-ui-template.git my-varsha-sitecd my-varsha-sitenpm installIf you clone with Git, consider removing the existing remote and adding your own before making commits:
git remote remove origingit remote add origin https://github.com/your-username/your-repo.gitnpm create astro@latest -- --template yethikrishna/web-ui-template my-varsha-sitecd my-varsha-sitenpm installStart the local dev server:
npm run devBy default, varsha runs on http://localhost:4321. Open this URL in your browser to see your site.
The dev server supports:
.astro, .mdx, .css, and .ts files are reflected instantly without a full page reload.--host to expose the dev server on your local network: npm run dev -- --host.varsha includes the following npm scripts out of the box:
| Script | Command | Purpose |
|---|---|---|
dev | npm run dev | Start the local development server |
build | npm run build | Build the production site to ./dist/ |
preview | npm run preview | Preview the production build locally before deploying |
astro | npx astro | Run Astro CLI commands directly |
After running npm run dev, you should see:
http://localhost:4321/http://localhost:4321/docs/http://localhost:4321/blog/If all three pages load, your installation is working correctly.
Quick start
Build your first custom page and deploy it in under five minutes.
Project structure
Familiarize yourself with how a varsha project is organized.