Konsolenbefehle
| Befehl (npm) | Aktion |
|---|---|
npm install | Installiert alle Abhängigkeiten |
npm run dev | Startet den lokalen Entwicklungsserver unter localhost:4321 |
npm run build | Baut die Produktionsseite in das Verzeichnis ./dist/ |
npm run preview | Zeigt die gebaute Seite lokal an, vor dem Deployment |
npm run astro ... | Führt Astro-Befehle aus wie astro add, astro check |
npm run astro -- --help | Zeigt Hilfe zur Nutzung der Astro-CLI |
| Befehl (mpx) | Aktion |
|---|---|
npx @astrojs/upgrade | Aktualisiert Astro und offizielle Plugins auf die neueste Version |