Skip to content

Create Command CLI

ABCrimson edited this page Mar 11, 2026 · 2 revisions

Create Command CLI

Scaffold a new modern-cmdk project instantly.

Usage

npm create modern-cmdk
# or
pnpm create modern-cmdk
# or
yarn create modern-cmdk

Templates

Template Description
react-basic Inline command palette with search, groups, items
react-dialog Dialog mode with Mod+K shortcut and overlay
react-full Full-featured: frecency, WASM search, virtualization, shortcuts

What's Generated

my-command-palette/
  package.json          # modern-cmdk + command-react deps
  tsconfig.json         # ES2026 target, strict mode
  src/
    command-palette.tsx  # Ready-to-use component

Options

npm create modern-cmdk -- --template react-dialog --name my-app

Clone this wiki locally