CybeDefend’s CLI offers support for a wide range of Linux distributions. Install the CLI, provide your API key, and scan code right from your terminal or Docker-based environments.

Requirements

  • Linux (32-bit or 64-bit).
  • API Key from your CybeDefend account.
  • Basic terminal knowledge.

Installation Steps

  1. Download the Binary
    From Releases, pick cybedefend-linux-amd64 (64-bit) or cybedefend-linux-386 (32-bit).
  2. Make Executable
    chmod +x cybedefend-linux-amd64
    
  3. Move to PATH
    sudo mv cybedefend-linux-amd64 /usr/local/bin/cybedefend
    
  4. Test
    cybedefend --version
    

If you’re running Alpine or a musl-based distro, ensure compatibility or build from source using go build.


Scanning Your Project

  1. In Terminal
    cd ~/my-app
    cybedefend scan --dir . --api-key YOUR_API_KEY --project-id YOUR_PROJECT_ID
    
  2. Check Results
    cybedefend results --project-id YOUR_PROJECT_ID --all --output json
    

This process easily integrates into Jenkins, GitLab CI, or GitHub Actions running on Linux hosts.