Use Mercur CLI commands correctly inside a project created from the Mercur basic starter. Use when choosing between `create`, `init`, `add`, `search`, `view`, and `diff`.
Use this skill when:
blocks.jsoncreate — create a new Mercur projectinit — create blocks.json in an existing projectsearch — search the registryview — inspect a block before installationadd — install a blockdiff — compare local installed block files against the registrysearch, view, add, diff) from the project root where blocks.json lives.medusa commands (, ) from using .db:generatedb:migratepackages/apibunx medusaapps/admin or apps/vendor.npx @mercurjs/cli@latest search --query <keyword>
npx @mercurjs/cli@latest view <block-name>
npx @mercurjs/cli@latest add <block-name>
Important: When CLI asks to overwrite middlewares.ts, always decline (n) and merge manually.
npx @mercurjs/cli@latest diff <block-name>
addFollow the block docs output, but verify everything against the actual installed files:
src/api/middlewares.ts.bunx medusa db:generate <module> and bunx medusa db:migrate from packages/api.bun add <package> in the correct workspace..env.add outputs the block docs after installation — read them carefully but verify against installed files.search command with --query "" returns all available blocks.search or viewmiddlewares.ts overwrite from CLI