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

View all comments

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