Command Line --list-extensions

Hello,
With VSC I can do code --list-extensions to have the list of my extension installed. This does not work with cursor despite being a fork of.
How can I achieve the --list-extensions ??
Thank you

Hi @maquejp

You can install CLI tool as cursor or code as well.

Have a look into the Command Palette for Shell Command: Install.... it offers you to create code or cursor command for cli.

Then you use cursor --list-extensions

image

On my OSX rig, yes it works but on my Ubuntu (22.04.5 LTS), I do not have the “shell command…”
I have forgotten to provide the os, sorry
It is well version Cursor 1.0.0, installed with the appImage downloaded
I have made it available through the terminal but when I do the command, it just open the IDE…

I have the same problem

@hypeit could you please provide more details about your issue? Note that this is not expected behavior so more information is needed to analyze cause: OS, Cursor version, do you have the cli tool installed, is vscode also installed separately?

OS: Ubuntu 24.04
Running Cursor as AppImage.

There doesn’t seem to be a CLI tool

Running with --list-extensions just starts cursor UI. It does not list extensions.

me@my-ubu:~/.AppImage$ ./Cursor-0.48.4-x86_64.AppImage --list-extensions
[main 2025-07-07T19:07:48.905Z] updateURL https://api2.cursor.sh/updates/api/update/linux-x64/cursor/1.2.1/03d94142d6feedf3770eba2f346def6856a8425a887ee7bd467c496062d3a9c3/stable
[main 2025-07-07T19:07:48.906Z] update#setState idle

Should it not work like Visual Studio Code?

me@my-ubu:~/.AppImage$ code --list-extensions
cschlosser.doxdocgen
eamodio.gitlens
exiasr.hadolint

Trying to do automated installs, so how does one install the cli extensions without the UI? Is there a way to install during the Cursor installation itself (running silently, no UI or user interaction) from a script?

cc @danperks Cursor CLI tool installation possible during Cursor installation?

Found a way to install Cursor silently, and it’s kludgy because the installer doesn’t use tasks, it runs a script to start Cursor that I can’t stop. But it doesn’t automatically install the Cursor CLI. Why isn’t that a default? Who would not want that installed?

$proc = Start-Process -FilePath $installer -ArgumentList '/CURRENTUSER', '/VERYSILENT', '/SP-', '/NORESTART', '/LOG=c:\windows\temp\cursor-install-exe.log' -PassThru -NoNewWindow
  
# Wait for the installer process itself to exit
while (-not $proc.HasExited) {
  Start-Sleep -Milliseconds 500
}
        
if (Get-Process -Name 'Cursor' -ErrorAction SilentlyContinue) {
  # Cursor.exe detected. Stopping it...
  Get-Process -Name 'Cursor' -ErrorAction SilentlyContinue | Stop-Process -Force
}

Yeah, I wish the Cursor CLI tool could be automatically added. Why it’s not a default, no idea.

I cant really speak from Cursor Teams internal perspective, but not everyone uses CLI to open Cursor, then also some prefer to use the code command while others have vscode as code and need to use cursor as CLI.

Found my winget install is broken, tried on another machine and this works for silent install:

winget install --id=Anysphere.Cursor `
            --silent `
            --accept-package-agreements `
            --accept-source-agreements `

It appears that the CLI is also installed. Oddly, when I run this manually:

cursor --install-extension msjsdiag.vscode-react-native

It works. But if I put this in a powershell script file (.ps1), it opens the GUI and doesn’t do the installation.