Global Options
All Tambo CLI commands support these global options. You can use them with any command to modify behavior, skip prompts, or handle common scenarios.
Available Options
--version
Shows the current version of the Tambo CLI.
--yes, -y
Auto-answers "yes" to all confirmation prompts.
Examples:
Use cases:
- Automated deployments
- CI/CD pipelines
- Batch operations
- When you're confident about the changes
--legacy-peer-deps
Installs dependencies using npm's --legacy-peer-deps
flag. This resolves common dependency conflicts.
Examples:
When to use:
- Getting peer dependency warnings
- Working with older React versions
- Complex dependency trees
- Corporate environments with strict package policies
Dependency Conflicts
If you see errors like "unable to resolve dependency tree" or peer dependency
warnings, try adding --legacy-peer-deps
to your command.
--prefix <path>
Specifies a custom directory for components instead of the default components/tambo
.
Examples:
Common prefix patterns:
src/components/ui
- Traditional UI components directorysrc/components/tambo
- Dedicated Tambo directory in srcapp/components/ui
- App router componentslib/components
- Library-style organization
--dry-run
Preview changes before applying them. Available for commands that modify files.
Examples:
Output example:
Combining Options
You can combine multiple options in a single command:
Command-Specific Options
Some commands have additional options beyond these global ones:
create-app
specific options
add
specific options
Best Practices
For Development
Troubleshooting
Common Issues
Issue: Command not found
Issue: Permission errors
Issue: Dependency conflicts
Issue: Wrong directory