Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).

## [1.1.58](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.58) - 2026-03-06

### Changed
- Updated `@socketsecurity/socket-patch` to v2.0.0, now powered by a native Rust binary for faster patch operations
- The `socket patch` command now directly invokes the platform-specific Rust binary instead of a Node.js wrapper
- Enhanced `socket patch` documentation with a complete subcommand reference and quick-start guide

## [1.1.57](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.57) - 2026-01-10

### Changed
- Updated `@socketsecurity/socket-patch` to v1.2.0, which includes:
- Progress spinner for scan command
- Improved test coverage

## [1.1.56](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.56) - 2026-01-10

### Fixed
Expand Down
32 changes: 32 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,38 @@ socket --help

- `socket cdxgen [command]` - Run [cdxgen](https://cyclonedx.github.io/cdxgen/#/?id=getting-started) for SBOM generation

- `socket patch <command>` - Apply, manage, and rollback Socket security patches for vulnerable dependencies

### Patch subcommands

| Command | Description |
|---------|-------------|
| `socket patch scan` | Scan installed packages for available security patches |
| `socket patch get <uuid> --org <slug>` | Download a patch by UUID and store it locally |
| `socket patch apply` | Apply downloaded patches to `node_modules` |
| `socket patch rollback [purl\|uuid]` | Rollback patches and restore original files |
| `socket patch list [--json]` | List all patches in the local manifest |
| `socket patch remove <purl\|uuid>` | Remove a patch from the manifest (rolls back by default) |
| `socket patch setup [--yes]` | Add `socket patch apply` to `postinstall` scripts |
| `socket patch repair` | Download missing blobs and clean up unused blobs |

**Quick start:**

```bash
# Scan for available patches, download, and apply.
socket patch scan
socket patch apply

# Or download a specific patch by UUID.
socket patch get <uuid> --org <org-slug>
socket patch apply

# Add to postinstall so patches reapply on npm install.
socket patch setup --yes
```

Free patches work without authentication. For paid patches, set `SOCKET_CLI_API_TOKEN` and `SOCKET_CLI_ORG_SLUG`.

## Aliases

All aliases support the flags and arguments of the commands they alias.
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "socket",
"version": "1.1.56",
"version": "1.1.58",
"description": "CLI for Socket.dev",
"homepage": "https://github.com/SocketDev/socket-cli",
"license": "MIT AND OFL-1.1",
Expand Down Expand Up @@ -123,7 +123,7 @@
"@socketsecurity/config": "3.0.1",
"@socketsecurity/registry": "1.1.17",
"@socketsecurity/sdk": "1.4.95",
"@socketsecurity/socket-patch": "1.0.0",
"@socketsecurity/socket-patch": "2.0.0",
"@types/blessed": "0.1.25",
"@types/cmd-shim": "5.0.2",
"@types/js-yaml": "4.0.9",
Expand Down
Loading