CLI Tools Integration
Learn how to use Juro's command-line interface for local development and automation.
Installation
npm install -g @juro/cli
Basic Usage
Scan a Project
juro scan --project ./my-project
Get AI Insights
juro ask "Check my code for GDPR compliance issues"
Configuration
Project Configuration
Create a juro.config.js file in your project root:
module.exports = {
rules: {
gdpr: true,
soc2: true,
owasp: true
},
ignore: [
'node_modules/**',
'dist/**'
]
};
Global Configuration
juro config set api-key YOUR_API_KEY
juro config set default-rules gdpr,soc2
Examples
Basic Scan
juro scan
Scan with Specific Rules
juro scan --rules gdpr,owasp
Generate Report
juro scan --output report.json --format json
Troubleshooting
Common Issues
-
API Key Not Set
- Run
juro config set api-key YOUR_API_KEY - Or set
JURO_API_KEYenvironment variable
- Run
-
Project Not Found
- Ensure you're in the correct directory
- Check the project structure
-
Scan Failures
- Check the error messages
- Verify your API key is valid