New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

cursor-installer

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cursor-installer

Utility script to install or update Cursor on Linux

latest
Source
npmnpm
Version
1.2.0
Version published
Weekly downloads
1
-50%
Maintainers
1
Weekly downloads
 
Created
Source

cursor-installer

npm

Downloads and installs the latest Cursor editor on Linux.

Usage

npx cursor-installer@latest

Pass --yes (or -y) to skip all confirmation prompts:

npx cursor-installer@latest --yes

What it does:

  • Checks your installed version and skips the download if it's current
  • Downloads the latest AppImage if needed
  • Sets file permissions
  • Creates a .desktop entry
  • Adds a cursor shell alias

Requirements

  • Linux
  • Bun (^1.3.11)

Effect & Testing Conventions

Effect Patterns

Business logic uses Effect generators (Effect.gen), typed errors (Data.TaggedError), and platform services (FileSystem, HttpClient) accessed from Effect context.

The CLI UI is abstracted behind a CliUI service backed by @clack/prompts. The --yes / -y flag swaps CliUIInteractive for CliUIAutoAccept (auto-confirms all prompts).

Testing

Tests use bun:test with Effect layers for dependency injection. See src/test-helpers.ts for mock factories (createTestFileSystem, createTestHttpClient, createTestCliUI). Tests swap in a mock CliUI layer to avoid interactive prompts.

E2E

bun run test:e2e runs the real installer in a Docker container (oven/bun:slim), downloading from cursor.com. Requires Docker. Uses --yes flag for auto-accept.

Built with

License

MIT

Keywords

cursor

FAQs

Package last updated on 28 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts