Local Code Scanning
Mac Setup for Local Code Scanning
Install and run the CybeDefend CLI on macOS for secure local code scanning.
This guide walks you through installing the CybeDefend CLI on macOS, ensuring you can quickly scan projects locally.
Requirements
- macOS (Intel or Apple Silicon).
- API Key from your CybeDefend account.
- Optional: Homebrew or direct binary installation.
Installation Methods
1. Homebrew (Recommended)
Check version:
2. Direct Download
- Download:
cybedefend-darwin-amd64
(for Intel) orcybedefend-darwin-arm64
(for M1/M2) from Releases. - Make Executable:
- Move to /usr/local/bin:
- Verify:
If you encounter a macOS Gatekeeper prompt, right-click the binary in Finder → Open, or remove quarantine attributes with xattr -d com.apple.quarantine cybedefend-darwin-*
.
Scanning on macOS
- Navigate to Your Code
- Run a Scan
- Check Results
You can also store your API key in the CYBEDEFEND_API_KEY environment variable to avoid typing it each time.