Back to Shadcn Ui

July 2025 - Local File Support

apps/v4/content/docs/changelog/2025-07-local-file-support.mdx

latest612 B
Original Source

The shadcn CLI now supports local files. Initialize projects and add components, themes, hooks, utils and more from local JSON files.

bash
# Initialize a project from a local file
npx shadcn init ./template.json

# Add a component from a local file
npx shadcn add ./block.json

This feature enables powerful new workflows:

  • Zero setup - No remote registries required
  • Faster development - Test registry items locally before publishing
  • Enhanced workflow for agents and MCP - Generate and run registry items locally
  • Private components - Keep proprietary components local and private.