Commands
migrate
npx tambo migrate
Migrates Tambo components from the legacy components/ui
directory to the new components/tambo
directory and updates import paths automatically.
This command addresses the change in Tambo CLI's installation approach - earlier versions installed components in components/ui
, while current versions use the dedicated components/tambo
directory for better organization.
What it does:
- Moves component files from
ui/
totambo/
directory - Updates import paths in moved files
- Preserves custom (non-Tambo) components in original location
- Shows preview of changes before applying
Examples:
Manual Migration Steps:
If you prefer to migrate manually:
- Move Files: Move all
.tsx
files from/components/ui/
to/components/tambo/
- Update Imports: Change all imports from
@/components/ui/
to@/components/tambo/
- Update Registry: Update component registrations in
lib/tambo.ts
- Test: Verify all components still work correctly