Skip to content

CLI Scripts

SunDevil311 edited this page Jun 15, 2025 · 3 revisions

Table of Contents


The following CLI commands are available via npm run <script> or pnpm run <script>.

πŸ”„ Development

Script Description
dev Start development server with Vite
preview Preview production build locally
build Build the project with Vite
dev:netlify Start local dev server using Netlify Dev (emulates serverless + headers)
build:netlify Build using Netlify CLI
css:bundle Bundle and minify CSS

Back to top

Β 

βœ… Pre-check / Sync

Script Description
prepare Run SvelteKit sync
check Run SvelteKit sync and type check with svelte-check
check:watch Watch mode for type checks
check:node Validate Node & npm versions match package.json engines
checkout Full local validation: check versions, test (incl. audit coverage), lint, typecheck
verify Alias for checkout

Back to top

Β 

🧹 Cleanup & Maintenance

Script Description
delete Remove build artifacts and node_modules
clean Fully reset environment and reinstall
upgrade Update all dependencies via npm-check-updates

Back to top

Β 

πŸ§ͺ Testing

Script Description
test Alias for test:all
test:all Run both client and server test suites (incl. audit coverage)
test:client Run client tests with Vitest
test:server Run server-side tests with Vitest
test:watch Watch mode for client tests
test:coverage Collect coverage from both client and server
test:e2e Runs E2E tests with up to 1 automatic retry on failure

Back to top

Β 

🧼 Linting & Formatting

Script Description
lint Run ESLint on JS, MJS, and Svelte files
lint:fix Auto-fix ESLint issues
lint:jsdoc Check JSDoc annotations
lint:css Run Stylelint on CSS and Svelte styles
lint:md Lint Markdown content
lint:all Run all linters and formatting checks
format Run Prettier formatting check
format:fix Auto-format code using Prettier

Back to top

Β 

πŸ’‘ Lighthouse / Performance

Script Description
lhci Alias for Lighthouse CI
lhci:run Run Lighthouse CI autorun

Back to top

Β 

πŸ“‹ Audits / Validation

Script Description
audit:coverage Warn about untested modules in src/ and scripts/
head:flatten Flatten headers for Netlify
head:validate Validate headers file against project config

Back to top

Β 

πŸ”„ Lifecycle Hooks

Script Description
postinstall Ensures version check after install

Back to top

🧠 Network Pro Wiki

🏠 Home

Placeholder structure; most pages are pending creation.


πŸ›  Setup & Tooling


🚧 Development


πŸ” Application Behavior


πŸš€ CI/CD


πŸ” PGP Usage

  1. Getting Started with PGP
  2. PGP on Windows
  3. PGP for Email

πŸ“š Docs Maintenance


πŸ“Ž Related Repos


🀝 Getting Started

New here? Start with:

Clone this wiki locally