-2

Is there an option to the cursor CLI (terminal) command so that a folder on remote server is opened via Remote-SSH?

This does not work:

cursor ssh://host/path
0

1 Answer 1

0

It works the same way as in VS Code: VSCode - open remote from cli

cursor --remote ssh-remote+<remoteHost> <remotePath>

For example:

cursor --remote ssh-remote+dev.example.com /home/john/code/project

You can specify an username:

cursor --remote [email protected] /home/john/code/project

The --file-uri and --folder-uri options work too:

cursor --folder-uri vscode-remote://ssh-remote+<remoteHost>/<remotePath>
# Example:
cursor --folder-uri vscode-remote://[email protected]/home/john/code/project
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.