veto doctor command checks your Veto setup and reports any issues.
Syntax
Description
Runs comprehensive diagnostics on:- Runtime: Node.js version and environment
- Project Structure: Veto directory and configuration
- Policy Files: Rules loading and validation
- Authentication: Cloud credentials (if configured)
- Connectivity: Network access to Veto Cloud (if configured)
Options
Directory
JSON Output
Examples
Basic Health Check
With Cloud Configuration
With Issues
JSON Output
Diagnostic Checks
Runtime Check
Verifies:- Node.js version (must be >= 20)
- Platform and architecture
- CLI version
- ⚠️ Node.js version below 20
- ✗ Node.js not found
Project Structure Check
Verifies:veto/directory existsveto.config.yamlexists- Rules directory exists and is accessible
- ✗ Veto not initialized
- ✗ Config file missing
- ✗ Rules directory not found
Policy Rules Check
Verifies:- Rules load successfully
- No YAML syntax errors
- No schema validation errors
- At least one rule is defined
- ✗ No rules files found
- ✗ YAML syntax error in rules
- ✗ Invalid rule schema
- ⚠️ No rules defined
Authentication Check
Verifies:- Cloud API key or device session
- Authentication credentials are valid
- ⚠️ No credentials found (OK for local mode)
- ✗ Invalid or expired credentials
Connectivity Check
Verifies:- Can reach Veto Cloud API
- API responds to health check
- Reasonable response time (under 1 second)
- ✗ Cannot connect to API
- ✗ API health check failed
- ⚠️ Slow response time (over 1 second)
Exit Codes
0- All checks passed1- One or more checks failed
Use Cases
Verify Installation
Troubleshoot Issues
CI/CD Health Gate
Pre-Deployment Check
Debug Environment
Troubleshooting
Node.js Version Warning
Veto Not Initialized
No Rules Found
Cloud Connection Failed
Invalid Credentials
Best Practices
1. Run After Setup
2. Run Before Deployment
3. Include in CI
4. Capture Diagnostics
5. Regular Health Checks
Next Steps
- Initialize Project - Set up Veto
- Cloud Login - Authenticate with cloud
- Scan Coverage - Check policy coverage
- Launch Studio - Interactive development

