Vollständige Referenz aller verfügbaren Befehle
staticblocks init <project-name>
# Example
staticblocks init my-website
Erstelle ein neues StaticBlocks-Projekt mit interaktiven Fragen zu CSS-Framework, Icons und i18n
staticblocks generate <type> <name> [options]
# Alias: staticblocks g
# Generate a block
staticblocks generate block hero
staticblocks generate block slider --with-js --with-css
# Generate a template
staticblocks generate template blog
# Generate a page
staticblocks generate page about
Generiere Blöcke, Templates oder Seiten. Nutze --with-js und --with-css Flags für Blöcke
staticblocks build [options]
# Basic build
staticblocks build
# Verbose output
staticblocks build --verbose
# With minification
staticblocks build --minify
Build das Projekt für Production. Generiert HTML, bündelt JS, verarbeitet CSS und erstellt SEO-Dateien
staticblocks dev [options]
# Start dev server (default port 3000)
staticblocks dev
# Custom port
staticblocks dev --port 8080
# Auto-open browser
staticblocks dev --open
Starte Entwicklungsserver mit Hot Reload und Datei-Überwachung
staticblocks validate [type]
# Validate everything
staticblocks validate
# Validate specific type
staticblocks validate pages
staticblocks validate locales
staticblocks validate templates
staticblocks validate blocks
Validiere Projektkonfiguration und -dateien. Prüft auf fehlende Dateien, ungültige Syntax und fehlerhafte Referenzen
staticblocks add <type> <name>
# Add a new locale
staticblocks add locale fr
# Add a new script
staticblocks add script analytics
Füge neue Locales oder Skripte zu deinem Projekt hinzu