Command Structure
Available Commands
scan
Scan a directory for privacy issues.<directory>- Path to the source code directory to scan (required)
-v, --verbose- Print verbose progress updates during the scan-h, --help- Display help for the scan command
version
Display the installed KafkaCode version.help
Display help information.Detailed Option Reference
Verbose Mode
Flag:-v, --verbose
Description: Enables detailed progress output during scanning.
Usage:
- 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 | Description | When It Occurs |
|---|---|---|
0 | Success - No issues found | Scan completed with zero findings |
1 | Issues found or error | One or more privacy issues detected, or scan failed |
Exit Code Usage Examples
- Bash Script
- CI/CD Pipeline
- npm Script
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 yourpackage.json:
Pre-commit Hook
Create.git/hooks/pre-commit:
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!

