CLI Reference
Vercel Doctor के लिए सभी command-line options और flags।
Usage
npx -y vercel-doctor@latest [directory] [options]directory argument का default . (current directory) है।
Options
| Flag | विवरण |
|---|---|
-v, --version | Current version प्रदर्शित करें |
--no-lint | Billing lint rules skip करें |
--no-dead-code | Dead code detection (Knip) skip करें |
--verbose | प्रति rule file paths और line numbers दिखाएं |
--score | केवल numeric score output करें (CI के लिए उपयोगी) |
-y, --yes | Interactive prompts skip करें, सभी workspace projects स्कैन करें |
--project <name> | Specific workspace project(s) चुनें, comma-separated |
--diff [base] | Base branch के मुकाबले केवल changed files स्कैन करें |
--offline | Score calculation के लिए उपयोग किए जाने वाले anonymous telemetry skip करें |
Examples
Current directory स्कैन करें
npx -y vercel-doctor@latest .Verbose output के साथ स्कैन करें
npx -y vercel-doctor@latest . --verboseप्रत्येक diagnostic के लिए affected file paths और line numbers दिखाता है।
केवल changed files स्कैन करें
npx -y vercel-doctor@latest . --diffBase branch को auto-detect करता है। आप specific base भी pin कर सकते हैं:
npx -y vercel-doctor@latest . --diff mainSpecific workspace project स्कैन करें
npx -y vercel-doctor@latest . --project webकई projects के लिए:
npx -y vercel-doctor@latest . --project web,apiDead code detection skip करें
npx -y vercel-doctor@latest . --no-dead-codeCI usage
npx -y vercel-doctor@latest . --yes --score--yes flag interactive prompts को skip करता है। --score के साथ combined, यह scripts और pipelines में उपयोग के लिए केवल numeric score output करता है।
Programmatic API
Vercel Doctor एक programmatic API भी export करता है:
import { run } from "vercel-doctor/api";Oxlint Plugin
Billing lint rules एक standalone Oxlint plugin के रूप में उपलब्ध हैं:
import plugin from "vercel-doctor/oxlint-plugin";Edit on GitHub
Last updated on