Skip to main content

HiAUDIT Documentation

/
  • Dashboard
  • Dashboard

Search

Close search
Open search
Menu
  • Getting Started

    • Getting Started

    • Log in to HiAUDIT
    • Generate an API Key
    • Install the HiAUDIT Agent
    • Connect to your IDE
    • Run your first audit
  • Reference

    • Reference

    • Command Line Interface
    • MCP Tools
    • Project Detection
    • Skill Playbooks
    • Supported Languages
  • Usage

    • Usage

    • Smart contract auditing
    • Web application auditing
    • Update
    • Troubleshooting
  1. HiAUDIT Documentation
  2. Reference
  3. Command Line Interface

Command Line Interface

Run HiAUDIT directly from the terminal in addition to using it inside your IDE.

Edit this page

© 2026 GitHub, Inc. All rights reserved.

Although most users interact with HiAUDIT through their IDE, the agent also works as a standalone command-line tool.

Smart contract analysis

# Solidity analysis hiauditagent run --scope src/ # Solana / Anchor analysis (auto-detected from Anchor.toml or Cargo.toml) hiauditagent run --scope programs/ # Solana analysis with explicit chain override hiauditagent run --scope programs/ --chain solana # List all Solana detectors hiauditagent detectors --chain solana

Web application analysis

The web application subcommand is web2:

# Web application analysis hiauditagent web2 --scope src/ # With taint analysis and OWASP scoring hiauditagent web2 --scope src/ --taint --owasp --framework express # Filtered to a specific language hiauditagent web2 --scope src/ --language Python --min-severity Medium

Web application CLI options

FlagDescription
--scopePaths to analyze (files or directories).
--excludePaths to exclude.
--min-severityMinimum severity: Critical, High, Medium, Low, Info.
--languageFilter to a specific language (TypeScript, Python, Java, etc.).
--taintInclude taint analysis (source-to-sink data flow tracking).
--owaspInclude OWASP Top 10 2025 compliance analysis.
--frameworkWeb framework for taint analysis (express, django, flask, spring, etc.).
--exclude-detectorsDetector IDs to skip.
--formatOutput format.
--outputWrite report to a file.

MCP commands

# Register HiAUDIT with all detected AI tools hiauditagent mcp add # Run the MCP server (normally launched by your editor, not by hand) hiauditagent mcp serve

For editor setup, see Connect to your IDE.

On this page

  • Smart contract analysis
  • Web application analysis
  • MCP commands