Install & Setup
Bridge Agent apne PC par install karo — 5 minutes
Prerequisites
Install karne se pehle ye check karo:
System Environment (v18+) install hai (node --version se check karo)
Package manager available hai (npm --version)
PC internet se connected hai
MikroTik router same LAN par hai ya IP reachable
MikroTik API port enabled hai (8728 ya 8729)
Environment Setup (Agar Nahi Hai)
Windows
nodejs.org par jao → LTS version download karo → Install karo. npm automatically aayega.
Linux (Ubuntu/Debian)
bash
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
sudo apt-get install -y nodejsStep 1 — Bridge Package Install Karo
Terminal ya Command Prompt kholkar ye command chalao:
bash
npm install -g @mikronestorg/bridgeInstallation verify karo:
bash
mikronest-bridge --versionGlobal Install
-g flag globally install karta hai taake mikronest-bridge command system-wide available ho.Step 2 — Configure Karo
Interactive setup command chalao:
bash
mikronest-bridge setupYe information chahiye hogi:
interactive
? Platform URL: https://mikronest.pages.dev
? Dealer Email: aapka@email.com
? Dealer Password: ********
? Bridge Name: Main-Office-BridgeStep 3 — Bridge Start Karo
bash
mikronest-bridge startSuccessful output kuch aisa dikhega:
output
Bridge Agent starting...
Authenticating with platform...
Connected to MikroNest Cloud
WebSocket established
Bridge is ONLINE — Name: Main-Office-BridgeStep 4 — Dashboard Par Verify Karo
1
Bridge Agents section par jao
Dashboard sidebar mein Bridge Agents link par click karo.
2
ONLINE status check karo
Aapka bridge ONLINE badge ke sath dikhna chahiye. Last Seen recently updated hoga.
Auto Refresh
Bridge Agents page har 30 seconds mein automatically refresh hota hai.Available Commands
| Command | Kaam |
|---|---|
| mikronest-bridge setup | Initial configuration |
| mikronest-bridge start | Bridge start karo |
| mikronest-bridge stop | Bridge stop karo |
| mikronest-bridge restart | Bridge restart karo |
| mikronest-bridge status | Current status check karo |
| mikronest-bridge logs | Logs dekhna |
| mikronest-bridge reconfigure | Settings update karo |
| mikronest-bridge --help | All commands list |
Auto-Start on Boot
Windows — Service Register
bash
mikronest-bridge install-serviceWindows Service register ho jaayegi jo PC restart par auto-start karegi.
Linux — systemd
bash
sudo systemctl enable mikronest-bridge
sudo systemctl start mikronest-bridge