Skip to main content

Command Structure

Available Commands

scan

Scan a directory for privacy issues.
Arguments:
  • <directory> - Path to the source code directory to scan (required)
Options:
  • -v, --verbose - Print verbose progress updates during the scan
  • -h, --help - Display help for the scan command
Examples:

version

Display the installed KafkaCode version.
Output:

help

Display help information.
Output:

Detailed Option Reference

Verbose Mode

Flag: -v, --verbose Description: Enables detailed progress output during scanning. Usage:
Standard Output:
Verbose Output:
When to use:
  • Debugging scan issues
  • Understanding what files are being analyzed
  • Monitoring progress on large codebases
  • Troubleshooting file discovery problems

Exit Codes

KafkaCode returns different exit codes based on scan results:

Exit Code Usage Examples

Environment Variables

While KafkaCode doesn’t use environment variables for configuration, you can use them in scripts:

Configuration Files

KafkaCode currently doesn’t support configuration files, but automatically respects:

.gitignore

All patterns in .gitignore are automatically excluded:

Built-in Exclusions

Automatically ignored:

Integration Patterns

npm/yarn Scripts

Add to your package.json:

Pre-commit Hook

Create .git/hooks/pre-commit:
Make it executable:

Makefile Integration

Common Use Cases

1. Quick Local Scan

2. Detailed Analysis

3. CI/CD Pipeline

4. Pre-deployment Check

5. Multiple Directories

6. Scheduled Scans

Output Formats

Currently, KafkaCode outputs to the console in a human-readable format. Future versions may support:

JSON Output

SARIF Output

HTML Report

CSV Export

Want these features? Vote on GitHub or contribute!

Troubleshooting

Command Not Found

Permission Errors

Scan Errors

Next Steps

Interpreting Results

Learn to understand scan reports

CI/CD Integration

Automate scanning in pipelines

Examples

See real-world examples

Troubleshooting

Solve common issues