Skip to content
DexCode

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.

bash
npm run dev

Opens 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.

bash
npm run build

npm run start

Start the production server after building.

bash
npm run start

npm run lint

Run ESLint to check code quality.

bash
npm run lint

Export

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:

bash
> Expose this deck via Cloudflare Tunnel and share the URL

Alternatively, you can start a tunnel manually:

bash
npx cloudflared tunnel --url http://localhost:3000

This generates a public URL (e.g., https://abc123.trycloudflare.com) that anyone can access.