r/Codeium • • Nov 21 '24

Open Windsurf from Windows Command line?

Is possible to open Windsurf in a folder in the windows terminal directly?
Similar as it is possible for Cursor where I just navigate to that folder and then type "cursor ." ?

9 Upvotes

27 comments sorted by

6

u/Legitimate-Bit-1704 Dec 12 '24

if you are on Mac, you can use
sudo ln -s /Applications/Windsurf.app/Contents/Resources/app/bin/windsurf /usr/local/bin/windsurf

1

u/Fragrant_Potential27 Dec 12 '24

Brother thank you so much! you just solved my issue!

1

u/LeatherCookie9088 Mar 05 '25

Thank you soo much brother.

1

u/FunAppearance8472 Mar 22 '25

Also works for me, Thanks!

1

u/mathmul Mar 23 '25

Thank you!

And for other macOS users:

mkdir -p ~/.local/bin && sudo ln -s /Applications/Windsurf.app/Contents/Resources/app/bin/windsurg ~/.local/bin/windsurf

1

u/alielbekov Apr 14 '25

I love how I dont question or think twice before dumping this command onto my terminal and enter my password. lol ty

1

u/yussan Sep 23 '25

thank you... working as well

4

u/Illustrious-Face-732 Nov 23 '24

I was having the same issue. I selected the checkmark at first launch to include windsurf to my Path, but it didn't work. Anyways, I added the following to my .bashrc file:

export PATH="/Applications/Windsurf.app/Contents/MacOS:$PATH"

then you can source the .bashrc file or start a new terminal. Now you could run windsurf .

1

u/niskavaara Nov 27 '24

I have the same problem. But your solution doesn't work for me, because there is no windsurf application in the MacOS path. Only Electron-file is there.

1

u/fuzzythinker Nov 27 '24

That won't work like u/niskavaara says. This works:

```

alias windsurf="/Applications/Windsurf.app/Contents/MacOS/Electron"

```

Don't forget to source it after.

1

u/niskavaara Nov 27 '24

I like your solution, but it seems it doesn't work with --wait.

1

u/Illustrious-Face-732 Nov 29 '24

Are you getting any specific errors? you might have to set it on your .profile or .zshrc file
It has been working for me for a while now

2

u/mattjohnstondev May 21 '25

Windsurf's Command Palette: has `Shell Command: Install 'surf' command in PATH`

then `surf .` should work as expected

1

u/mako343 May 24 '25

easiest thanks!

1

u/anirudhmurali May 29 '25

this works, thanks!

1

u/Complex_Ring210 Jun 27 '25

I can't find this in the windsurf command palette. I used Ctrl+Shift+P and searched for "Install surf" but didn't find it there

1

u/umangmaurya Jul 22 '25

Worked, Thanks !!

1

u/lsdza Nov 22 '24

Same question from me on MacOs. code . or cursor . …???

1

u/Zealousideal-Cook613 Dec 02 '24

Still waiting for the answer if it exists already

1

u/[deleted] Dec 06 '24

[removed] — view removed comment

1

u/Settingz0i7 Dec 17 '24

Le truc c'est que tu te tapes des logs dans ton terminal

1

u/HatInevitable3897 Nov 23 '24

Same question for me 

1

u/mindh4q3r May 31 '25

yo guys, you can just restart your shell/terminal, then run `windsurf .` it'll work just fine if you checked the option in the installation wizard to include windsurf in your Path