CLI Commands
Complete reference for DexCode's command-line interface.
Commands
DexCode is managed through npm scripts defined in package.json.
Development
npm run dev
Start the development server with hot module replacement.
npm run devOpens at http://localhost:3000 by default. Navigate to http://localhost:3000/<deck-name> to view a specific deck.
npm run build
Build the project for production deployment.
npm run buildnpm run start
Start the production server after building.
npm run startnpm run lint
Run ESLint to check code quality.
npm run lintExport
PDF and PPTX export are available through the browser UI. When viewing a deck, use the export buttons in the toolbar to generate exports.
- PDF — Renders each slide at full resolution via Playwright and combines them into a high-quality PDF
- PPTX — Renders each slide as a high-resolution image and inserts them into a PowerPoint file using pptxgenjs
Sharing via Cloudflare Tunnel
DexCode includes cloudflared as a dependency. The tunnel can be started through the UI or by asking your AI agent:
> Expose this deck via Cloudflare Tunnel and share the URLAlternatively, you can start a tunnel manually:
npx cloudflared tunnel --url http://localhost:3000This generates a public URL (e.g., https://abc123.trycloudflare.com) that anyone can access.