Command-line interface

# pnpm
$ pnpm add -D @previewjs/cli

# npm
$ npm install --dev @previewjs/cli

# Yarn
$ yarn add -D @previewjs/cli

You can then run previewjs in your project directory and pick any component to preview!