Installation Methods

wget https://github.com/ZeroPathAI/zeropath-cli/releases/latest/download/zeropath-macos -O zeropath
chmod +x zeropath
sudo mv zeropath /usr/local/bin/

Download Latest Release

Get the latest release directly from GitHub

Verify Installation

After installation, verify the CLI is working:
# Check if installed correctly
zeropath --version

# View available commands
zeropath --help

Authentication

Connect the CLI to your ZeroPath account using API credentials:
# Authenticate with your Client ID and Client Secret
zeropath auth <clientId> <clientSecret>

Getting API Credentials

  1. Sign in to ZeroPath Dashboard
  2. Navigate to API Settings or Account Settings
  3. Generate new API credentials (Client ID and Client Secret)
  4. Save these credentials securely

First Scan

Once authenticated, you can start scanning:
# Scan current directory and save results
zeropath scan . output.sarif

# Scan a specific directory
zeropath scan /path/to/your/project results.sarif

Common Usage Patterns

Local Development

# Quick scan of current project
zeropath scan .

# Scan specific directory
zeropath scan ./src output.sarif

CI/CD Integration

# Scan with failure on findings
zeropath scan --fail-on-findings

# Repository scanning by ID
zeropath scan --repository-id <repositoryId>

# Repository scanning by URL
zeropath scan --repository-url https://github.com/owner/repo --vcs github

Next Steps