The repository builds one npm package: @socketsecurity/cli, on the 2.x prerelease line.
Use the Node version in .node-version and the package-manager range in package.json.
pnpm install
pnpm run build
pnpm run s --helpThe build writes the Node CLI and command wrappers to dist/. The root manifest supplies the package identity and version.
src/command/provides argument parsing, help, aliases, and dispatch.src/core/contains implementations shared by command entries.scripts/repo/cli-build/builds and tests the CLI.scripts/repo/build-infra/contains build helpers..config/repo/cli/contains product build and test configurations.
pnpm run type:cli
pnpm run test:unit --all
pnpm run test:integration
pnpm run check:cli-packageProduct unit tests live in test/unit/. Integration tests live in test/integration/. Repository tooling tests live in test/repo/.
pnpm run cover:cli measures product coverage. Firewall coverage includes its core implementation and CA command.
pnpm run clean:cache removes this repository's CLI cache. pnpm run build --force rebuilds the CLI.
The root manifest defines the package files and executable names. The socket-npm, socket-npx, socket-pnpm, and socket-yarn wrappers select the command mode before loading the CLI.
Publishing uses the fleet publishing workflow. Local builds do not publish a package or create a release.