GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Tiptap Docs
  • UI Components
  • Website
  • Sign up
  • Install
  • Style
  • CLI
  • Changelog
  • Simple Editor
  • Notion EditorPaid
  • DOCX EditorPaid
  • Overview
  • Components
  • Node components

This view

  • Original page
  • New address

GeezerVison is showing tiptap.dev — Tiptap CLI

The Tiptap CLI copies React components and templates into your project and installs their dependencies. Use pnpm dlx @tiptap/cli@latest or npx @tiptap/cli@latest to run it.

Start a project

Run this command from the directory where you want to create your project.

pnpm dlx @tiptap/cli@latest init

Choose Next.js, enter a project name, then select Simple Editor from the templates. Open the project directory and run pnpm dev. In a Next.js App Router project, open /simple on the local development server. An individual component such as mark-button has no route of its own. Import it into the page or toolbar where you want it to appear.

For other setups, follow the Vite guide or the installation guide for your framework in the sidebar.

Commands

init

In a directory without a project, init creates a Next.js or Vite project in a new subdirectory. In an existing project, run it from the directory containing package.json. Set up your framework's import alias first so the CLI can resolve paths such as @/components.

pnpm dlx @tiptap/cli@latest init simple-editor

Pass --framework next or --framework vite to select the scaffold. For a new Next.js app, --src-dir puts the app under src/ and --react-compiler enables React Compiler. Use --cwd <directory> to choose a working directory. The --silent flag mutes output.

To create a project without questions, pass --name <name> and --defaults. The CLI then creates a Next.js project, uses the default TypeScript and React Server Components settings, and installs only the items you name.

pnpm dlx @tiptap/cli@latest init simple-editor --framework next --name my-app --defaults

add

Run add in an existing project. Use the install name on the component or template page. You can install several items together.

pnpm dlx @tiptap/cli@latest add mark-button heading-dropdown-menu

The CLI installs the requested files and their registry dependencies. Register the Tiptap extensions listed on the component page when you configure your editor. Use --cwd <directory> to select another project or --path <directory> to change the component destination. The --overwrite flag replaces existing component files, including your edits. Commit local changes before using it so you can review and recover them.

Pass --dry-run to list the files and packages the CLI would install, without changing the project. --diff shows the changes to every file, and --diff <path> shows the changes to one destination file. Put the item names before --diff.

pnpm dlx @tiptap/cli@latest add simple-editor --dry-run
pnpm dlx @tiptap/cli@latest add simple-editor --diff app/simple/page.tsx

search

Run search to find public registry items by words in their name or description. Pass --type to limit the results to one type, such as template or node, and --json for structured results.

pnpm dlx @tiptap/cli@latest search image --type node

view

Run view with an install name to see the item's files, App Router routes, plan, links, and direct dependencies. Pass --json for structured output. --source prints the source files. Paid source needs a signed-in account with access and an accepted license.

pnpm dlx @tiptap/cli@latest view simple-editor

info

Run pnpm dlx @tiptap/cli@latest info from the project, or pass --cwd <directory> to inspect another project. Pass --json to read the project settings, aliases, and installed package versions as JSON.

login

Run pnpm dlx @tiptap/cli@latest login to sign in with the Tiptap account that has access to a paid item. When a project needs private npm packages, run login --write-config in the project to configure its package manager. Keep credentials out of version control.

status

Run pnpm dlx @tiptap/cli@latest status to see which account and plans the CLI recognizes.

license

Run pnpm dlx @tiptap/cli@latest license to check the local license acceptance status. The CLI asks you to accept the Tiptap Pro License when you first install a paid item.

logout

Run pnpm dlx @tiptap/cli@latest logout to sign out.

When pnpm reports an ignored build

In an existing pnpm 11 project, add can stop with ERR_PNPM_IGNORED_BUILDS for @parcel/watcher while it installs Sass. Sass does not need that optional install script. Skip the script in the project directory, then run the install again. New Next.js projects that init creates already skip it. pnpm build approvals

pnpm approve-builds '!@parcel/watcher'
pnpm dlx @tiptap/cli@latest add simple-editor
PreviouslyStyle
Next upChangelog
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.