Restart Vite banner
opensesh opensesh

Restart Vite

Development community

Description

--- description: Clear cache and restart dev server allowed-tools: Bash --- Clear all caches and restart the development server for a fresh start. ## Steps 1. **Kill any running Vite/esbuild processes:** ```bash pkill -9 -f 'vite' 2>/dev/null pkill -9 -f 'esbuild' 2>/dev/null ``` 2. **Check cache sizes before clearing** (for reporting): ```bash du -sh $WORKING_DIRECTORY/node_modules/.vite 2>/dev/null du -sh $WORKING_DIRECTORY/node_modules/.cache 2>/dev/null du -sh $WO

Installation

Installs to ~/.claude/commands/opensesh-os_design-directory-restart-vite.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/opensesh/OS_design-directory/HEAD/.claude/commands/restart-vite.md -o ~/.claude/commands/opensesh-os_design-directory-restart-vite.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository