Skip to content

Installation

  • Node.js 22 or higher
  • A frontend project with TypeScript
Terminal window
# npm
npm install -D screenbook
# pnpm
pnpm add -D screenbook
# yarn
yarn add -D screenbook

Run the init command to set up Screenbook in your project:

Terminal window
npx screenbook init

This will:

  1. Auto-detect your framework (Next.js, Vite, Remix, Nuxt, Astro)
  2. Create screenbook.config.ts with appropriate patterns
  3. Add .screenbook to .gitignore

Check that the CLI is working:

Terminal window
npx screenbook --help

You should see the list of available commands.