CLI tool for DevRadar - Check your tech stack compatibility from the terminal
npm install @devradardev/cli> Check your tech stack compatibility from the terminal


``bash`
npm install -g @devradar-dev/cli
Or use with npx (no installation required):
`bash`
npx @devradar-dev/cli check nextjs prisma
Check if two technologies work well together:
`bash`
devradar check nextjs prisma
Output:
`
Nextjs + Prisma
────────────────────────────────────────
✓ Compatible
Compatible in Node.js runtime but does NOT work in Edge Runtime.
→ Learn more: https://devradar.dev/check/nextjs-prisma
`
Analyze your entire project for compatibility issues:
`bashScan current directory
devradar scan
Output:
`
Stack Compatibility Scan
────────────────────────────────────────
Score: 55/100Detected Technologies:
✓ Nextjs
✓ Prisma
✓ Tailwind
Issues (1):
1. Nextjs + Prisma
[WARNING] Edge Runtime incompatibility detected
Suggestions:
• Consider using Turso or PlanetScale for Edge-compatible database
https://devradar.dev/check/prisma-vercel-edge
Scanned: 5 dependencies
`Options
$3
Get machine-readable output for CI/CD:
`bash
devradar check nextjs prisma --json
devradar scan --json
`Response:
`json
{
"techA": "nextjs",
"techB": "prisma",
"version": "1.0",
"status": "partial",
"severity": "warning",
"message": "...",
"workaround": "...",
"docsUrl": "https://devradar.dev/check/nextjs-prisma"
}
`$3
`bash
devradar --help
devradar check --help
devradar scan --help
`$3
`bash
devradar --version
`Exit Codes
| Code | Meaning |
|------|---------|
| 0 | Compatible / Good score (60+) |
| 1 | Partial compatibility / Medium score (40-59) |
| 2 | Incompatible / Poor score (<40) |
Use in CI/CD:
`bash
devradar check nextjs prisma || echo "Compatibility issues found!"
`Examples
$3
`yaml
.github/workflows/compatibility-check.yml
- name: Check tech stack compatibility
run: npx @devradar-dev/cli scan --json > compatibility-report.json
`$3
`bash
.git/hooks/pre-commit
devradar scan || exit 1
`$3
`bash
devradar check node alpine
devradar check nextjs vercel-edge
`API
The CLI uses DevRadar's public API:
- Check API:
POST /api/v1/check
- Scan API: POST /api/v1/scanRate limits:
- Check: 60 requests/minute
- Scan: 10 requests/minute
Development
$3
`bash
Clone repo
git clone https://github.com/devradar-dev/cli.git
cd cliInstall dependencies
npm installLink for local testing
npm linkTest
devradar check nextjs prisma
devradar scan
`$3
`
@devradar-dev/cli/
├── bin/
│ └── devradar.js # CLI entry point
├── src/
│ ├── api/
│ │ └── client.ts # API client
│ ├── commands/
│ │ ├── check.ts # Check command
│ │ └── scan.ts # Scan command
│ └── output/
│ ├── text.ts # Terminal output
│ └── json.ts # JSON output
├── package.json
└── README.md
`Deployment
$3
`bash
Build (if needed)
npm run buildPublish to @devradar-dev org
npm publish --access public
`$3
1. Create new repo:
github.com/devradar-dev/cli
2. Push code:
`bash
git remote add origin https://github.com/devradar-dev/cli.git
git branch -M main
git push -u origin main
``MIT © DevRadar
- Website: https://devradar.dev
- Documentation: https://github.com/devradar-dev/cli/wiki
- API Docs: https://devradar.dev/api
- Report Issues: https://github.com/devradar-dev/cli/issues
---
Made with ❤️ for developers worldwide