/preview command manages your local development server. Use it to start, stop, restart, or check the status of your preview environment.
Sub-commands
When to use this
Local testing
Test changes in browser before committing
Iterative development
Restart after major changes
Port conflicts
Resolve port issues
Status checks
Verify server is running
Usage examples
Start server
Status check
Port conflict
If the default port is already in use:How it works
The preview system uses theauto_preview.py script to:
- Detect framework: Automatically identifies Next.js, React, Vue, etc.
- Start dev server: Runs the appropriate command (
npm run dev, etc.) - Monitor health: Checks if server is responding
- Handle conflicts: Resolves port conflicts automatically
