
अपने पैकेज मैनेजर कॉन्फ़िगरेशन को सप्लाई चेन हमलों से सुरक्षित करें।
```text
_ _
| | ___ _ __ ___ __ _ _ _ __ _ _ __ | |
/
|/ _ \ '_ \/ __|/ _ | | | |/ | '__/ _ |
| (| | __/ |) _ \ (| | || | (| | | | (| |
_,_|_| ./|/_, |_,|_,|| _,|
|| |___/
अपनी निर्भरताओं को आपूर्ति श्रृंखला हमलों से बचाएं। **एकल स्थिर बाइनरी, शून्य रस्ट क्रेट निर्भरताएँ।**
द्वारा **[[arnica](https://arnica.io?utm_source=depsguard&utm_medium=referral&utm_campaign=community)]**
## विषय - सूची
- [अवलोकन](#overview)
- [स्थापना](#install)
- [उपयोग](#usage)
- [क्या जाँचा जाता है](#what-gets-checked)
- [कॉन्फ़िग फ़ाइल स्थान](#config-file-locations)
- [तत्काल सुरक्षा सुधार](#urgent-security-fix)
- [बैकअप और पुनर्स्थापना](#backups-and-restore)
- [यह कैसे काम करता है](#how-it-works)
- [समस्या निवारण](#troubleshooting)
- [सहायता और प्रतिक्रिया](#help--feedback)
- [मार्गदर्शिकाएँ](#guides)
- [यह भी देखें](#see-also)
- [लाइसेंस](#license)
## अवलोकन
DepsGuard आपकी मशीन पर **npm**, **pnpm**, **yarn**, **bun**, **uv**, **pip**, **poetry**, और **aube** को ढूंढता है, उनकी कॉन्फ़िग फ़ाइलों को पढ़ता है, उनकी तुलना अनुशंसित आपूर्ति श्रृंखला सेटिंग्स से करता है, और **इंटरैक्टिव रूप से सुधार लागू** कर सकता है। यह आपके रिपोजिटरी में **Renovate** और **Dependabot** कॉन्फ़िग को भी स्कैन करता है। यह कभी पैकेज इंस्टॉल नहीं चलाता; यह केवल उन कॉन्फ़िग फ़ाइलों को संपादित करता है जिन्हें आप स्वीकार करते हैं, और किसी भी बदलाव से पहले **बैकअप** लिखता है।
### मुख्य विशेषताएं
- इंटरैक्टिव TUI: स्कैन, समीक्षा, सुधार टॉगल, लागू करें
- केवल-पढ़ने के लिए रिपोर्टिंग के लिए `scan` उप-कमांड
- बैकअप चुनने और फ़ाइल को वापस रोल करने के लिए `restore` उप-कमांड
- क्रॉस-प्लेटफ़ॉर्म: Linux, macOS, Windows
- कोई बंडल किया हुआ तृतीय-पक्ष रस्ट क्रेट नहीं (stdlib + टर्मिनल के लिए छोटी मात्रा में प्लेटफ़ॉर्म FFI)
### तकनीकी स्टैक
| क्षेत्र | विवरण |
|------|---------|
| भाषा | Rust (MSRV **1.74**, देखें `Cargo.toml`) |
| CLI / TUI | `src/main.rs`, `src/ui.rs`, `src/term.rs` |
| कॉन्फ़िग तर्क | `src/manager.rs`, `src/fix.rs` |
| वेबसाइट | `docs/` के अंतर्गत स्थिर साइट (बाइनरी से अलग) |
## स्थापना
### पूर्व-निर्मित बाइनरी
प्रत्येक [GitHub Release](https://github.com/arnica/depsguard/releases) में निम्नलिखित के लिए आर्काइव शामिल हैं:
- Linux: `x86_64` (glibc), `x86_64` (musl), `aarch64` (glibc)
- macOS: Intel और Apple Silicon
- Windows: `depsguard.exe` युक्त `x86_64` ZIP
अपने प्लेटफ़ॉर्म के लिए आर्काइव डाउनलोड करें, इसे अनपैक करें, और बाइनरी को अपने `PATH` पर रखें।
रिलीज़ पेज पर प्रत्येक एसेट के बगल में मौजूद मिलान `.sha256` फ़ाइल का उपयोग करके अखंडता सत्यापित करें।
### प्लेटफ़ॉर्म के अनुसार स्थापना
#### Linux (APT के माध्यम से Debian/Ubuntu)```bash
sudo install -d -m 0755 /etc/apt/keyrings
curl -fsSL https://depsguard.com/apt/gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/depsguard.gpg
echo "deb [arch=amd64,arm64 signed-by=/etc/apt/keyrings/depsguard.gpg] https://depsguard.com/apt stable main" | sudo tee /etc/apt/sources.list.d/depsguard.list >/dev/null
sudo apt update
sudo apt install depsguard
brew install depsguard
DepsGuard है [homebrew-core](https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/d/depsguard.rb) में, इसलिए किसी कस्टम टैप की आवश्यकता नहीं है।
> **पुराने `arnica/depsguard` टैप से माइग्रेट कर रहे हैं?** कोर फॉर्मूला पर एक बार स्विच करें:
>
> ```bash
> brew uninstall depsguard
> brew untap arnica/depsguard
> brew update
> brew install depsguard
> ```
#### Windows```powershell
# WinGet
winget install Arnica.DepsGuard
# Scoop
scoop bucket add depsguard https://github.com/arnica/depsguard
scoop install depsguard
या PowerShell के माध्यम से मैन्युअल रूप से डाउनलोड करें:```powershell $zip = "$env:TEMP\depsguard.zip" Invoke-WebRequest -Uri "https://github.com/arnica/depsguard/releases/latest/download/depsguard-x86_64-pc-windows-msvc.zip" -OutFile $zip Expand-Archive -LiteralPath $zip -DestinationPath "$env:TEMP\depsguard" -Force Copy-Item "$env:TEMP\depsguard\depsguard.exe" "$HOME\AppData\Local\Microsoft\WindowsApps\depsguard.exe" -Force depsguard.exe --help
### crates.io```bash
cargo install depsguard
एक Rust toolchain की आवश्यकता है जिसमें cargo हो।
यदि आपका संगठन Homebrew, Scoop, या WinGet के माध्यम से DepsGuard वितरित करता है, तो उनके निर्देशों का उपयोग करें। उन चैनलों को सेट अप या स्वचालित करना (Homebrew कोर PRs, बकेट्स, WinGet PRs, CI secrets) रखरखावकर्ता दस्तावेज़ है; AGENTS.md में रिलीज़ और वितरण अनुभाग देखें।
| चैनल | Linux | macOS | Windows | स्थापना कमांड |
|---|---|---|---|---|
| APT (कस्टम रेपो) | हाँ | नहीं | नहीं | sudo apt install depsguard (उपरोक्त रेपो सेटअप के बाद) |
| crates.io | हाँ | हाँ | हाँ | cargo install depsguard |
| Homebrew (homebrew-core) | हाँ | हाँ | नहीं | brew install depsguard |
| Scoop (कस्टम बकेट) | नहीं | नहीं | हाँ | scoop bucket add depsguard https://github.com/arnica/depsguard ; scoop install depsguard |
| WinGet | नहीं | नहीं | हाँ | winget install Arnica.DepsGuard |
जिस भी चैनल से आपने स्थापित किया है उसका उपयोग करें:
| चैनल | अपग्रेड कमांड |
|---|---|
| Homebrew | brew update && brew upgrade depsguard |
| APT (कस्टम रेपो) | sudo apt update && sudo apt install --only-upgrade depsguard |
| crates.io | cargo install --force depsguard (नवीनतम रिलीज़ को पुनः स्थापित करता है) |
| Scoop | scoop update && scoop update depsguard |
| WinGet | winget upgrade Arnica.DepsGuard |
किसी भी समय depsguard --version के साथ अपने स्थापित संस्करण की जाँच करें, और नवीनतम संस्करण के लिए रिलीज़ पेज देखें।
git clone https://github.com/arnica/depsguard.git cd depsguard cargo build --release
बाइनरी `target/release/depsguard` (`.exe` विंडोज पर) है। Rust **1.74+** आवश्यक है।
## उपयोग```bash
depsguard # interactive: scan, choose fixes, apply
depsguard scan # report only; no writes (exits 1 if action is needed)
depsguard --no-search # skip recursive file search, check local configs only
depsguard restore # restore from a previous backup
depsguard --help # CLI help