💻

CLI Commands

Estimated reading time: 5 min

Command-line tools for creating, building, and exporting presentations.

Create

npx @reactslides/cli create my-presentation
npx @reactslides/cli create my-slides --template corporate
npx @reactslides/cli create my-docs --mode markdown

Development

Terminal
npm run dev

Start the development server with hot reload.

Build

Terminal
npm run build

Build the presentation for production.

Export

bash
# Export to PDF
npx reactslides export --pdf

# Export to PNG images
npx reactslides export --png

# Export both formats
npx reactslides export --pdf --png

Preview

Terminal
npm run preview

Preview the production build.