Skip to content

Installation

  • Rust 1.85+ (for building from source)
  • PostgreSQL 16+ (for the platform API)
  • Node.js 20+ (for the catalog compiler and dashboard)
  1. Clone the repository:

    Terminal window
    git clone https://github.com/crabnebula-dev/fleet.git
    cd fleet
  2. Compile the catalog:

    Terminal window
    cd catalog/compiler
    pnpm install
    pnpm run compile
    cd ../..
  3. Build Fleet:

    Terminal window
    cargo build --release
  4. Verify installation:

    Terminal window
    ./target/release/fleet scan --help
Terminal window
docker build -f integrations/Dockerfile.scanner -t fleet-scanner:latest .
docker run --rm -v $(pwd):/workspace fleet-scanner:latest \
fleet scan --path /workspace --output pretty

If you want the dashboard, evidence storage, and API:

  1. Create a PostgreSQL database:

    Terminal window
    createdb fleet
  2. Set the database URL:

    Terminal window
    export DATABASE_URL="postgres://$(whoami)@localhost/fleet"
  3. Run migrations:

    Terminal window
    ./target/release/fleet-server
    # Migrations run automatically on startup
Terminal window
cd dashboard
pnpm install
pnpm dev
# Opens at http://localhost:3000
Terminal window
# Scan the fleet project itself
fleet scan --path . --output pretty

Expected output:

Fleet CRA Assessment Scanner
Scanning: .
Catalog: CRA Default v1.0.0 (401 requirements)
Languages: rust, javascript
Source files: 93, Manifests: 4, Lockfiles: 4
CBOM: 314 crypto primitives (301 approved, 6 deprecated, 7 prohibited)
=== CRA Assessment Results ===
Findings: 152
Pass: 55
Fail: 40
Review: 57
Scan completed in 12.0s