Syntax
Description
Theexplain command provides human-friendly explanations of why a script is considered risky. It performs the same analysis as validate but focuses on detailed explanations of findings rather than pass/fail results.
This is useful for:
- Understanding why validation failed
- Learning about security risks in scripts
- Educational purposes for team members
- Debugging guard level behavior
Arguments
Path to the shell script to analyze
Examples
Explain a Deployment Script
Explain Risk Levels
Test Guard Level Detection
Exit Codes
- 0: Analysis completed successfully
- 1: Failed to read or parse script
- 2: Analysis error
Related Commands
- validate - Validate scripts (pass/fail)
- exec - Execute commands with protection
- scan-security - Scan source code for security issues