Safeguard.sh Documentation Center
Safeguard CLI

Safeguard CLI

Command-line interface for Safeguard.sh software supply chain security

Safeguard CLI

The Safeguard CLI provides command-line access to all Safeguard.sh 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 the CLI
npm install -g @safeguard-sh/cli

# Authenticate
safeguard auth login

# Generate your first SBOM
safeguard sbom generate --source .

# Check for vulnerabilities
safeguard scan --source .

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

RequirementMinimum
Node.jsv18.0.0 or higher
npmv8.0.0 or higher
Operating SystemWindows 10+, macOS 10.15+, Linux (Ubuntu 20.04+)
Memory4GB RAM recommended
Disk Space500MB for installation

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