An AI powered CLI tool to help migrate web applications from Vite to Next.js.
- Intelligent analysis of Vite projects
- Automatic migration of components and routing
- Support for both Next.js App Router and Pages Router
- AI-powered code transformations
- Interactive assistance
pip install stackshift
- Configure your API key:
stackshift setup
- Scan your Vite project:
stackshift scan
- Validate migration progress:
stackshift validate
- Transform components:
stackshift transform
- Get interactive assistance:
stackshift chat
--router
: Choose between "app" (default) and "pages" router--fix
: Automatically fix validation issues- Project path is optional if you're inside a Vite project
# Scan current directory
stackshift scan
# Validate with Pages Router
stackshift validate --router pages
# Transform with automatic fixes
stackshift validate --fix
# Scan specific project
stackshift scan ./my-vite-project
- Python 3.8 or higher
- Anthropic API key
- Node.js and npm (for the Vite project)
MIT License