Safeguard Docs
Safeguard CLI

Safeguard CLI

Command-line interface for Safeguard software supply chain security

Safeguard CLI

The Safeguard CLI provides command-line access to all Safeguard capabilities, enabling automation, CI/CD integration, and local development workflows.

Overview

The CLI allows you to:

  • Generate SBOMs from local projects
  • Scan for vulnerabilities
  • Enforce security policies and gates
  • Upload and manage SBOMs
  • Integrate with CI/CD pipelines
  • Automate security workflows

Quick Start

Install it — macOS and Linux:

curl -fsSL https://cli.safeguard.sh/install | bash

Windows:

irm https://cli.safeguard.sh/install.ps1 | iex

Then open the terminal and sign in:

safeguard

Type /login to authenticate, then /scan . to scan the folder you are in. Or just ask it something — "how many critical vulns do we have" works.

Key Features

FeatureDescription
SBOM GenerationCreate SBOMs from source code, containers, and binaries
Vulnerability ScanningIdentify security issues in dependencies
Policy EnforcementApply security gates and policies
CI/CD IntegrationSeamless integration with popular CI/CD platforms
Multiple FormatsOutput in SPDX, CycloneDX, JSON, and more
Offline ModeGenerate SBOMs without network connectivity

Documentation

System Requirements

The CLI is a single static binary. There is no runtime to install alongside it — no Node, no Python, no JVM.

RequirementMinimum
Operating SystemmacOS, Linux, or Windows — see Platforms
Architecturex86_64 or arm64 (Windows ships x86_64 only)
Disk Space~40MB for the binary, plus the scanners it downloads on first use

Getting Help

# View all commands
safeguard --help

# Get help for a specific command
safeguard sbom --help
safeguard scan --help
safeguard gate --help

Next Steps

  1. Install the CLI
  2. Learn basic usage
  3. Integrate with CI/CD

On this page