Supaslidev Logo
Reference

CLI Commands

Reference for create-supaslidev and @supaslidev/dashboard CLI commands.

create-supaslidev

The scaffolding CLI for creating and managing Supaslidev workspaces.

create

Create a new Supaslidev workspace with a monorepo structure.

Usage:

npx create-supaslidev [create]

Options:

OptionDescriptionDefault
-n, --name <name>Name of the workspaceInteractive prompt
-p, --presentation <name>Name of the first presentationmy-first-deck
-t, --template <template>Template to usedefault
--gitInitialize a git repositorytrue
--no-gitSkip git initialization
--installRun pnpm install after scaffoldingtrue
--no-installSkip pnpm install

Examples:

# Interactive mode (prompts for all options)
npx create-supaslidev

# Non-interactive with all options
npx create-supaslidev create --name my-slides --presentation intro-deck

# Skip git and install steps
npx create-supaslidev create --name my-slides --no-git --no-install
Names must be lowercase alphanumeric with hyphens only and cannot start or end with a hyphen.

status

Display workspace status including CLI version, pending migrations, and available presentations.

Usage:

npx create-supaslidev status

Output includes:

  • CLI version and workspace state version
  • Creation and last updated timestamps
  • Number of pending migrations
  • List of native and imported presentations
  • Available CLI updates

Example:

npx create-supaslidev status

migrate

Run migrations to update the workspace structure and configurations.

Usage:

npx create-supaslidev migrate [options]

Options:

OptionDescriptionDefault
--applyExecute migrations (without this flag, runs in dry-run mode)false

Examples:

# Preview what migrations would be applied (dry-run)
npx create-supaslidev migrate

# Apply pending migrations
npx create-supaslidev migrate --apply
Always run without --apply first to preview changes before applying migrations.

update

Check for CLI updates and display upgrade instructions.

Usage:

npx create-supaslidev update

Example:

npx create-supaslidev update

If an update is available, the command displays the current and latest versions along with installation instructions.


supaslidev (@supaslidev/dashboard)

The presentation management CLI for creating, developing, and exporting presentations.

dev

Start the Supaslidev dashboard UI and development server.

Usage:

pnpm supaslidev [dev]

Example:

# Start the dashboard
pnpm supaslidev

# Or explicitly
pnpm supaslidev dev

The dashboard provides a visual interface for managing all presentations in your workspace.


new

Create a new presentation in the workspace using the Slidev scaffolding wizard.

Usage:

pnpm supaslidev new [name]

Arguments:

ArgumentDescriptionRequired
nameName for the new presentationNo (prompts if omitted)

Examples:

# Interactive mode
pnpm supaslidev new

# With a specific name
pnpm supaslidev new quarterly-review
Names must be lowercase alphanumeric with hyphens only and cannot start or end with a hyphen.

present

Start a development server for a specific presentation.

Usage:

pnpm supaslidev present <name>

Arguments:

ArgumentDescriptionRequired
nameName of the presentation to startYes

Example:

pnpm supaslidev present quarterly-review

This starts the Slidev development server with hot reload for the specified presentation.


export

Export a presentation to PDF format.

Usage:

pnpm supaslidev export <name> [options]

Arguments:

ArgumentDescriptionRequired
nameName of the presentation to exportYes

Options:

OptionDescriptionDefault
-o, --output <path>Output path for the PDF filedist/<name>.pdf

Examples:

# Export to default location
pnpm supaslidev export quarterly-review

# Export to custom path
pnpm supaslidev export quarterly-review --output ./exports/q4-review.pdf

deploy

Build and prepare a presentation for deployment to hosting platforms.

Usage:

pnpm supaslidev deploy <name> [options]

Arguments:

ArgumentDescriptionRequired
nameName of the presentation to deployYes

Options:

OptionDescriptionDefault
-o, --output <path>Output directory for deployment filesdeploy/<name>

Examples:

# Deploy to default location
pnpm supaslidev deploy quarterly-review

# Deploy to custom directory
pnpm supaslidev deploy quarterly-review --output ./deploy/q4

The deploy command:

  1. Builds the presentation using Slidev
  2. Creates a deployment package with the built files
  3. Adds configuration files for Vercel and Netlify

After running, follow the printed instructions to deploy to your preferred platform.


import

Import an existing Slidev presentation into the workspace.

Usage:

pnpm supaslidev import <source> [options]

Arguments:

ArgumentDescriptionRequired
sourcePath to existing Slidev presentation directoryYes

Options:

OptionDescriptionDefault
-n, --name <name>Name for the imported presentationSource directory name
--no-installSkip pnpm install after import

Examples:

# Import with auto-detected name
pnpm supaslidev import /path/to/existing-presentation

# Import with custom name
pnpm supaslidev import /path/to/existing-presentation --name new-name

# Import without installing dependencies
pnpm supaslidev import /path/to/existing-presentation --no-install
The import command validates that the source directory contains both slides.md and package.json files.

Workspace Scripts

Supaslidev workspaces include convenience scripts in package.json:

ScriptDescription
pnpm devStart the dashboard (alias for supaslidev dev)
pnpm new <name>Create a new presentation
pnpm present <name>Start dev server for a presentation
pnpm export <name>Export presentation to PDF
pnpm deploy <name>Build for deployment
pnpm dev:allStart dev servers for all presentations
pnpm build:allBuild all presentations

Next Steps

Quick Start

Dashboard