Vercel Doctor

CLI Reference

Vercel Doctor के लिए सभी command-line options और flags।

Usage

npx -y vercel-doctor@latest [directory] [options]

directory argument का default . (current directory) है।

Options

Flagविवरण
-v, --versionCurrent version प्रदर्शित करें
--no-lintBilling lint rules skip करें
--no-dead-codeDead code detection (Knip) skip करें
--verboseप्रति rule file paths और line numbers दिखाएं
--scoreकेवल numeric score output करें (CI के लिए उपयोगी)
-y, --yesInteractive prompts skip करें, सभी workspace projects स्कैन करें
--project <name>Specific workspace project(s) चुनें, comma-separated
--diff [base]Base branch के मुकाबले केवल changed files स्कैन करें
--offlineScore 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 . --diff

Base branch को auto-detect करता है। आप specific base भी pin कर सकते हैं:

npx -y vercel-doctor@latest . --diff main

Specific workspace project स्कैन करें

npx -y vercel-doctor@latest . --project web

कई projects के लिए:

npx -y vercel-doctor@latest . --project web,api

Dead code detection skip करें

npx -y vercel-doctor@latest . --no-dead-code

CI 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

On this page