11# Socket Patch CLI
22
3- Apply security patches to npm and Python dependencies without waiting for upstream fixes.
3+ Apply security patches to npm, Python, and Rust dependencies without waiting for upstream fixes.
44
55## Installation
66
@@ -226,6 +226,7 @@ socket-patch rollback [identifier] [options]
226226| ` --offline ` | Do not download missing blobs; fail if any are missing |
227227| ` -g, --global ` | Rollback globally installed packages |
228228| ` --global-prefix <path> ` | Custom path to global ` node_modules ` |
229+ | ` --one-off ` | Rollback by fetching original files from API (no manifest required) |
229230| ` --ecosystems <list> ` | Restrict to specific ecosystems (comma-separated) |
230231| ` --json ` | Output results as JSON |
231232| ` -v, --verbose ` | Show detailed per-file verification information |
@@ -424,7 +425,7 @@ When stdin is not a TTY (e.g., in CI pipelines), interactive prompts auto-procee
424425
425426## Manifest Format
426427
427- Downloaded patches (for both npm and Python packages) are stored in ` .socket/manifest.json ` :
428+ Downloaded patches (for npm, Python, and Rust packages) are stored in ` .socket/manifest.json ` :
428429
429430``` json
430431{
@@ -445,13 +446,16 @@ Downloaded patches (for both npm and Python packages) are stored in `.socket/man
445446 "severity" : " high" ,
446447 "description" : " Detailed description"
447448 }
448- }
449+ },
450+ "description" : " Patch description" ,
451+ "license" : " MIT" ,
452+ "tier" : " free"
449453 }
450454 }
451455}
452456```
453457
454- Patched file contents are in ` .socket/blobs / ` (named by git SHA256 hash).
458+ Patched file contents are in ` .socket/blob / ` (named by git SHA256 hash).
455459
456460## Supported Platforms
457461
0 commit comments