A command-line interface for opening files and directories in the Windsurf editor.
You can install Windsurf CLI in several ways:
brew tap stevencch99/windsurf-cli
brew install windsurf-cli- Clone this repository
- Run the install script:
This will install the
./install.sh
windsurfcommand to/usr/local/bin. You can specify a different installation directory:./install.sh /custom/bin/path
- Clone this repository
- Copy the
windsurfscript to your local bin directory or add it to your PATH - Make the script executable:
chmod +x windsurf
windsurf <path>Opens the specified path in Windsurf editor.
# Open a file
windsurf myfile.txt
# Open a directory
windsurf /path/to/projectTo run the test suite:
./test.shThe tests verify:
- Basic command functionality
- Error handling
- Path resolution
- Installation script integrity
- Unix-like operating system (Linux, macOS, etc.)
- Windsurf editor installed
MIT License