Skip to main content
Guardian
Docs
ChangelogFAQContact
Download
Guardian

AI-generated code governance for small engineering teams. Enforce team policies and approve releases with confidence.

Product

  • Changelog
  • Docs
  • FAQ
  • Contact

Resources

  • Getting Started
  • Security
  • Configuration
  • Guru AI
  • Monitoring

Legal

  • Privacy Policy

© 2026 Guardian Project. All rights reserved.

Designed & Developed bySenol Dogan

CLI Tool | Guardian

Sections

Features

Guru: Release Decision AssistantProject MonitoringReviews & Fix ProposalsCLI Tool
MCP Server

General

Getting Started

Operations

InstallationAuthenticationUpdatesConfigurationMigration Guide

Security

SecuritySecret Redaction

Support

Troubleshooting
Documentation

CLI Tool

Run Guardian scans from terminal and CI/CD pipelines

Overview

Guardian CLI (guardian-cli) brings code governance to your terminal and CI/CD pipelines.

Installation

The CLI is included in the Guardian release. Download from the Download page or build from source:

cargo install --path guardian-cli

Basic Usage

Scan a project

guardian-cli scan /path/to/project

Scan with JSON output

guardian-cli scan /path/to/project --format json --output report.json

Scan with a specific profile

guardian-cli scan /path/to/project --profile extended

Offline mode (no AI)

guardian-cli scan /path/to/project --offline

Scan Profiles

ProfileFilesDescription
source~200Source code only (default)
extended~300Source + configs + scripts
full~500Everything including docs

CI/CD Integration

GitHub Actions

- name: Guardian Scan
  run: |
    guardian-cli scan . --format json --output guardian-report.json
    guardian-cli scan . --offline  # Policy-only check

GitLab CI

guardian-scan:
  script:
    - guardian-cli scan . --format json --output guardian-report.json
  artifacts:
    paths:
      - guardian-report.json

Output Formats

  • Text (default): Human-readable summary
  • JSON: Machine-readable with full finding details including evidence snippets, line numbers, confidence scores

Secret Redaction

The CLI automatically redacts 19+ secret patterns before sending code to AI providers, matching the desktop app's protection level.

On This Page

OverviewInstallationBasic UsageScan a projectScan with JSON outputScan with a specific profileOffline mode (no AI)Scan ProfilesCI/CD IntegrationGitHub ActionsGitLab CIOutput FormatsSecret Redaction