mirror of
https://github.com/hanzoai/shadcn.git
synced 2026-11-03 03:18:52 +00:00
Squash merge of shadcn-ui/ui main branch into hanzo/ui, bringing in: - [email protected] through [email protected] releases - New apps/v4 directory structure - Registry system improvements and MCP server - Framework support (Vue, Svelte, React Native) - New templates (vite-app, monorepo-next, laravel) - Zod 4 compatibility (scoped override for zod@>4) - Test fixture corrections for alias resolution All 867 merge conflicts resolved preserving Hanzo customizations. 1020/1020 shadcn tests pass.
23 lines
752 B
Plaintext
23 lines
752 B
Plaintext
---
|
|
title: July 2025 - Local File Support
|
|
description: Initialize projects and add components from local JSON files.
|
|
date: 2025-07-07
|
|
---
|
|
|
|
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.
|