PledgePack CLI
The pledgepack CLI for bundling, dev server, and scaffolding.
TL;DR
The pledgepack CLI (alias: pledge) provides dev, build, serve, create, analyze, and migrate commands. It can be used standalone without PledgeJS.
Last updated: August 22, 2026
Installation
PledgePack can be installed globally or as a dev dependency. The CLI command is pledge (alias: pledgepack).
# Global install
npm install -g pledgepack
# Or as a dev dependency
npm install --save-dev pledgepackDevelopment Server
Start the dev server with HMR, custom ports, auto-open browser, or HTTPS.
pledgepack dev # Start on port 3000
pledgepack dev --port 8080 # Custom port
pledgepack dev --open # Auto-open browser
pledgepack dev --https # HTTPS with self-signed certsProduction Build
Build for production with optional watch mode, profiling, type checking, and bundle size budgets.
pledgepack build # Build to dist/
pledgepack build --watch # Watch mode
pledgepack build --profile # Profile build phases
pledgepack build --type-check # TypeScript type checking
pledgepack build --check-budgets # Bundle size budgetsProject Scaffolding
Create new projects with framework-specific templates.
pledgepack create react my-app
pledgepack create vue my-app
pledgepack create svelte my-app
pledgepack create solid my-app
pledgepack create next my-app
pledgepack create tanstack my-app
pledgepack create pledgestack my-app
pledgepack create vanilla my-app
pledgepack create my-app # Defaults to pledgestackOther Commands
PledgePack includes commands for testing, benchmarking, analysis, caching, and more.
| Command | Description |
|---|---|
| pledgepack serve | Serve static files on port 4000 |
| pledgepack preview | Alias for serve |
| pledgepack test | Run tests (Vitest-compatible API) |
| pledgepack bench | Benchmark build performance |
| pledgepack analyze --graph | Bundle analyzer with dependency graph |
| pledgepack dashboard | Build telemetry dashboard |
| pledgepack cache clear | Clear disk cache |
| pledgepack cache stats | Show cache statistics |
| pledgepack doctor | Diagnose build issues |
| pledgepack init | Add PledgePack to existing project |
| pledgepack migrate | Migrate from Vite/webpack/CRA |
| pledgepack schema | Generate JSON Schema for config |
| pledgepack playground | Interactive transform REPL |
| pledgepack completions --shell bash | Shell completions |
| pledgepack manpages | Generate man pages |