Skip to main content
This guide walks you through installing the CybeDefend CLI on macOS, ensuring you can quickly scan projects locally.

Requirements

  • macOS (Intel or Apple Silicon).
  • Personal Access Token (PAT) from your CybeDefend account.
  • Optional: Homebrew or direct binary installation.

Installation Methods

brew tap cybedefend/cli
brew install cybedefend
Check version:
cybedefend version

2. Direct Download

  1. Download: cybedefend-darwin-amd64 (for Intel) or cybedefend-darwin-arm64 (for M1/M2) from Releases.
  2. Make Executable:
    chmod +x cybedefend-darwin-*
    
  3. Move to /usr/local/bin:
    sudo mv cybedefend-darwin-* /usr/local/bin/cybedefend
    
  4. Verify:
    cybedefend --help
    
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

  1. Navigate to Your Code
    cd ~/Projects/my-app
    
  2. Authenticate (one-time setup)
    cybedefend login --pat YOUR_PAT --region eu
    
  3. Run a Scan
    cybedefend scan --dir . --project-id YOUR_PROJECT_ID
    
  4. Check Results
    cybedefend results --project-id YOUR_PROJECT_ID --all
    
You can also store your PAT in the CYBEDEFEND_PAT environment variable to avoid typing it each time:
export CYBEDEFEND_PAT=your_pat_here