socket-patch list

Show the project's patches and the mode each one uses

socket-patch list shows every patch the project uses, with its package, patch UUID and mode. It reads hosted links from the lockfiles, vendored packages from .socket/vendor/ and agent mode records from .socket/manifest.json.

  • Run from a repository root, it lists the current directory and every patched project directory below it.
  • It needs no network access and never changes anything.
  • A project with no patches is not an error. It prints a hint to run socket-patch scan.
socket-patch list
socket-patch list --json

Each entry looks like this:

Package: pkg:npm/[email protected]
  UUID: 642d7f02-ebc1-4ab0-99e2-07f5dd8463cb
  Mode: hosted (wired in package-lock.json)

socket-patch list -h

-h prints the common options shown here. socket-patch list --help prints every option.

$ socket-patch list -h

Show this project's patches in every mode

Usage: socket-patch list [OPTIONS]

Options:
  -h, --help     Print help (see more with '--help')
  -V, --version  Print version

Global options:
      --cwd <CWD>                Working directory [env: SOCKET_CWD=] [default: .]
  -e, --ecosystems <ECOSYSTEMS>  Restrict to these ecosystems (comma-separated): npm, pypi, cargo,
                                 gem, golang, maven, composer, nuget, deno [env: SOCKET_ECOSYSTEMS=]
      --offline                  Disable network access; fail if remote data is needed [env:
                                 SOCKET_OFFLINE=]
  -j, --json                     Emit machine-readable JSON output [env: SOCKET_JSON=]
      --dry-run                  Preview the operation without making any mutations [env:
                                 SOCKET_DRY_RUN=]

Did this page help you?