GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Drewwb/socket-cli: Command-line interface for socket.dev security analysis

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

6,027 Commits
6,027 Commits

Folders and files

NameName
Last commit message
Last commit date
.agents/skills
.agents/skills
 
 
.claude
.claude
 
 
.config
.config
 
 
.git-hooks
.git-hooks
 
 
.github
.github
 
 
.husky
.husky
 
 
assets
assets
 
 
docs
docs
 
 
packages
packages
 
 
patches
patches
 
 
scripts
scripts
 
 
.editorconfig
.editorconfig
 
 
.env.example
.env.example
 
 
.env.precommit
.env.precommit
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.node-version
.node-version
 
 
.npmrc
.npmrc
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CLAUDE.md
CLAUDE.md
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
external-tools.json
external-tools.json
 
 
install.sh
install.sh
 
 
package.json
package.json
 
 
pnpm-lock.yaml
pnpm-lock.yaml
 
 
pnpm-workspace.yaml
pnpm-workspace.yaml
 
 
socket.yml
socket.yml
 
 
tsconfig.check.json
tsconfig.check.json
 
 

Repository files navigation

Socket CLI

Socket Badge CI Coverage

Follow @SocketSecurity Follow @socket.dev on Bluesky

CLI for Socket.dev — bring Socket's supply-chain security analysis to your terminal and CI.

Why this repo exists

Socket CLI is the command-line interface to Socket.dev, letting you scan dependencies, audit packages, and gate installs from your terminal or CI. This repository is the source for the published socket package on npm; end-user documentation lives on socket.dev and the socket npm page.

Install

npm install -g socket

Then run:

socket --help

Usage

# Scan a package
socket package npm/[email protected]

# Scan your project's dependencies
socket scan create

# Audit an install before it runs
socket npm install

See the Socket docs for the full command reference.

Development

Contributor commands
git clone https://github.com/SocketDev/socket-cli.git
cd socket-cli
pnpm install
pnpm run build
pnpm test

Requires Node.js (see .node-version) and pnpm (see the packageManager field in package.json).

Command Description
pnpm run build Smart build (skips unchanged)
pnpm run build --force Force rebuild everything
pnpm run build:cli Build CLI package only
pnpm run build:sea Build SEA binaries
pnpm dev Watch mode (auto-rebuild)
pnpm test Run all tests
pnpm testu Update test snapshots
pnpm run check Lint + typecheck
pnpm run fix Auto-fix lint + formatting

Run the built CLI from source:

node packages/cli/dist/index.js --help

Enable debug logging:

SOCKET_CLI_DEBUG=1 node packages/cli/dist/index.js <command>

Key development environment variables:

Variable Description
SOCKET_CLI_DEBUG Enable debug logging (1)
SOCKET_CLI_API_TOKEN Socket API token
SOCKET_CLI_ORG_SLUG Socket organization slug
SOCKET_CLI_API_BASE_URL Override API endpoint
SOCKET_CLI_NO_API_TOKEN Disable default API token

Further contributor reading:

  • docs/build-guide.md — build pipeline, SEA binaries, cache management
  • docs/bundle-tools.md — how bundled tools (opengrep, trivy, etc.) are integrated
  • packages/cli/README.md — CLI package architecture
  • packages/build-infra/README.md — shared build tooling
  • packages/package-builder/README.md — template-based package generation

License

MIT

About

Command-line interface for socket.dev security analysis

socket.dev/npm/package/socket

Resources

Readme

Security policy

Security policy
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.