Commands
Loading...
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:
# Preview migration changes (recommended first)
npx tambo migrate --dry-run
# Perform migration with confirmation
npx tambo migrate
# Skip confirmation prompts
npx tambo migrate --yesManual Migration Steps:
If you prefer to migrate manually:
- Move Files: Move all
.tsxfiles 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