Create New Project in Astro

From the Astro cheat sheet · Getting Started · verified Jul 2026

Create New Project

bash
# Interactive CLI setup
npm create astro@latest

# With specific template
npm create astro@latest -- --template blog

# DETAILED_TAB:
# Create and start project
npm create astro@latest my-site
cd my-site
npm install
npm run dev

# Available templates:
# minimal, blog, portfolio, docs
✅ CLI guides you through setup with TypeScript, dependencies, and git
💡 Dev server runs on http://localhost:4321 by default
🔍 Official templates: minimal, blog, portfolio, docs
⚡ Supports React, Vue, Svelte, Solid, Preact, Alpine.js
setupcliinstall

More Astro tasks

Back to the full Astro cheat sheet