Socket CLI Commands
Each page in this section covers one Socket CLI command, with its --help output and examples. You can see the same help in your terminal by running socket <command> --help. For an introduction to the CLI and how to install it, see the Guide to Socket CLI.
Socket API
socket analytics: look up analytics data for your organization or a repositorysocket audit-log: look up the audit log for an organizationsocket ci: create a scan and report, and exit with an error if the result is unhealthysocket organization: manage Socket organization account detailssocket package: look up published package details and scoressocket repository: manage registered repositoriessocket scan: create and manage Socket scanssocket scan github: create scans for GitHub repositoriessocket threat-feed: view the Socket threat feed
Local tools
socket fix: fix CVEs in dependenciessocket optimize: optimize dependencies with @socketregistry overridessocket manifest: generate a dependency manifest for certain ecosystemssocket manifest cdxgen: run cdxgen to generate an SBOMsocket npmandsocket npx: run npm and npx with Socket security scanningsocket raw-npm: run npm without the Socket wrappersocket raw-npx: run npx without the Socket wrapper
CLI configuration
socket login: set up the CLI with an API token and defaultssocket logout: log out and clear stored Socket credentialssocket config: view and change the local CLI configurationsocket installandsocket uninstall: install or remove tab completionsocket wrapper: turn the Socket npm/npx wrapper on or off
Updated 9 days ago
Did this page help you?