FreeGuard CLI কমান্ড রেফারেন্স
FreeGuard CLI টার্মিনাল থেকে আপনার VPN সংযোগ, সাবস্ক্রিপশন, এবং কনফিগারেশন পরিচালনার জন্য একটি পূর্ণাঙ্গ কমান্ড সেট প্রদান করে। প্রতিটি কমান্ড স্ক্রিপ্টিং এবং AI agent ইন্টিগ্রেশনের জন্য --json আউটপুট সমর্থন করে।
Global Flags
এই flags যেকোনো কমান্ডের সাথে কাজ করে:
| Flag | Description |
|---|---|
--json |
JSON format-এ আউটপুট (agent-friendly) |
--quiet, -q |
নীরব mode, শুধু ফলাফল আউটপুট |
--verbose, -v |
debug information সহ বিস্তারিত আউটপুট |
--no-color |
colored output নিষ্ক্রিয় করুন |
--lang <code> |
interface language (auto, en, zh, ja, etc.) |
--config <path> |
নির্দিষ্ট configuration file ব্যবহার করুন |
Connection
freeguard connect
একটি VPN server-এর সাথে connect করুন। arguments ছাড়া, স্বয়ংক্রিয়ভাবে উপলব্ধ সবচেয়ে দ্রুত node নির্বাচন করে।
# Auto-connect to the best server
freeguard connect
# Connect to a specific node by ID
freeguard connect us-new-01
# Connect to the best server in a country
freeguard connect --country JP
# Use a specific protocol
freeguard connect --protocol anytls
# Enable TUN mode (requires sudo/admin)
freeguard connect --tun
Human-readable output:
✓ Connected to United States - New York (us-new-01)
Protocol: anytls | Latency: 42ms
Proxy: 127.0.0.1:7890 (HTTP/SOCKS5)
JSON output:
freeguard connect --json
{"status": "connected", "node": "us-new-01", "protocol": "anytls", "latency_ms": 42}
Flags:
| Flag | Description |
|---|---|
--country <code> |
এই country-তে সেরা node-এর সাথে connect করুন (ISO 3166-1 alpha-2) |
--protocol <name> |
পছন্দের protocol (anytls, hysteria2, vless, etc.) |
--tun |
system-wide VPN-এর জন্য TUN mode ব্যবহার করুন (requires elevated privileges) |
freeguard disconnect
বর্তমান VPN server থেকে disconnect করুন।
freeguard disconnect
✓ Disconnected
freeguard disconnect --json
{"status": "disconnected"}
freeguard status
বর্তমান connection status এবং traffic statistics দেখান।
freeguard status
FreeGuard VPN Status
────────────────────
Status: ● Connected
Node: United States - New York (us-new-01)
Protocol: anytls
Latency: 42ms
Upload: 1.2 MB/s
Download: 15.8 MB/s
Duration: 2h 15m
Mode: System Proxy (HTTP/SOCKS5)
freeguard status --json
{
"connected": true,
"node": {"id": "us-new-01", "name": "United States - New York", "country": "US"},
"protocol": "anytls",
"latency_ms": 42,
"traffic": {"upload_bps": 1258291, "download_bps": 16569754},
"duration_seconds": 8100,
"mode": "system_proxy",
"proxy_port": {"mixed": 7890}
}
Authentication
freeguard login
FreeGuard-এর সাথে authenticate করুন। email verification (account প্রয়োজন নেই) অথবা FreeGuard account login সমর্থন করে।
Email login (recommended):
# Step 1: Request verification code
freeguard login --email [email protected] --send-code
# Step 2: Enter the code
freeguard login --email [email protected] --code 123456
✓ Logged in successfully!
✓ Found 1 active subscription (Pro Plan, expires 2026-12-01)
Account login (opens browser):
freeguard login --account
Flags:
| Flag | Description |
|---|---|
--email <address> |
email verification দিয়ে login করুন |
--send-code |
verification code email-এ পাঠান |
--code <digits> |
6-digit verification code জমা দিন |
--account |
browser OAuth-এর মাধ্যমে FreeGuard account দিয়ে login করুন |
freeguard logout
সংরক্ষিত credentials মুছে ফেলুন এবং বর্তমানে connected থাকলে disconnect করুন।
freeguard logout
✓ Logged out. Credentials cleared.
Subscription
freeguard subscribe list
উপলব্ধ subscription plan এবং আপনার বর্তমান subscription status দেখুন।
freeguard subscribe list
Your Subscription
─────────────────
Plan: Pro
Status: Active
Expires: 2026-12-01
Traffic: 450 GB / Unlimited
Available Plans
───────────────
Plan Monthly Quarterly Annual
Basic $4.99 $12.99 $39.99
Pro $9.99 $24.99 $79.99
freeguard subscribe list --json
{
"current": {"plan": "pro", "status": "active", "expires": "2026-12-01"},
"plans": [
{"name": "basic", "prices": {"monthly": 4.99, "quarterly": 12.99, "annual": 39.99}},
{"name": "pro", "prices": {"monthly": 9.99, "quarterly": 24.99, "annual": 79.99}}
]
}
freeguard subscribe create
নতুন subscription তৈরি করুন। Stripe বা cryptocurrency-এর মাধ্যমে payment সম্পন্ন করতে আপনার browser খুলবে।
# Interactive plan selection
freeguard subscribe create
# Specify plan directly
freeguard subscribe create --plan pro --email [email protected]
Flags:
| Flag | Description |
|---|---|
--plan <name> |
Subscription plan (basic, pro) |
--email <address> |
subscription delivery-এর জন্য email |
Configuration
freeguard config get
একটি configuration value পড়ুন।
freeguard config get proxy.port
7890
freeguard config get proxy.port --json
{"key": "proxy.port", "value": 7890}
freeguard config set
একটি configuration value পরিবর্তন করুন।
freeguard config set proxy.port 8080
✓ proxy.port set to 8080
সাধারণ configuration keys:
| Key | Default | Description |
|---|---|---|
proxy.port |
7890 |
HTTP/SOCKS5 proxy port |
proxy.mode |
rule |
Proxy mode: rule, global, direct |
core.api_port |
9090 |
Mihomo API port |
core.pinned_version |
(empty) | Mihomo-কে নির্দিষ্ট version-এ pin করুন |
dns.provider |
auto |
DNS provider |
update.auto_check |
true |
startup-এ updates-এর জন্য check করুন |
freeguard config edit
আপনার default editor-এ configuration file খুলুন।
freeguard config edit
Diagnostics
freeguard doctor
সমস্যা নির্ণয়ের জন্য একটি comprehensive environment check চালান।
freeguard doctor
FreeGuard Environment Check
───────────────────────────
✓ OS: macOS 15.2 (arm64)
✓ CLI version: v1.0.0
✓ Core version: mihomo v1.19.21
✓ Config dir: ~/.freeguard/
✓ Credentials: Logged in (email: u***@example.com)
✓ Subscription: Active (expires 2026-12-01)
✓ Network: Internet reachable
✓ DNS: Working (8.8.8.8)
✗ TUN permission: Not available (run with sudo for TUN mode)
✓ Port 7890: Available
✓ GeoIP database: Up to date (2026-03-15)
Result: 10/11 checks passed. TUN mode requires elevated privileges.
freeguard doctor --json
{
"checks": [
{"name": "os", "status": "pass", "detail": "macOS 15.2 (arm64)"},
{"name": "cli_version", "status": "pass", "detail": "v1.0.0"},
{"name": "tun_permission", "status": "fail", "detail": "Not available (run with sudo)"}
],
"passed": 10,
"total": 11
}
freeguard version
CLI এবং core engine-এর version information দেখান।
freeguard version
FreeGuard CLI v1.0.0
Core: mihomo v1.19.21
OS: darwin/arm64
freeguard version --json
{"cli": "1.0.0", "core": "1.19.21", "os": "darwin", "arch": "arm64"}
Advanced (Phase 2+)
নিচের কমান্ডগুলো ভবিষ্যৎ release-এর জন্য পরিকল্পিত।
freeguard node list
filtering এবং sorting সহ উপলব্ধ VPN node-এর তালিকা দেখান।
freeguard node list
freeguard node list --country US --sort latency
Flags:
| Flag | Description |
|---|---|
--country <code> |
country code দিয়ে filter করুন |
--protocol <name> |
protocol দিয়ে filter করুন |
--sort <field> |
speed, latency, অথবা load অনুযায়ী sort করুন |
freeguard node test
node-এর latency এবং speed test করুন।
freeguard node test us-new-01
freeguard node test --all
freeguard monitor
আপনার টার্মিনালে real-time traffic monitoring দেখান।
freeguard monitor
↑ 0.8 MB/s ↓ 12.3 MB/s Connections: 47
freeguard core
অন্তর্নিহিত mihomo ইঞ্জিনটি পরিচালনা করুন।
# Check core status
freeguard core status
# Update to latest core version
freeguard core update
# Restart the core engine
freeguard core restart
freeguard shell
একটি সেশনে একাধিক কমান্ড চালানোর জন্য ইন্টারঅ্যাকটিভ REPL মোডে প্রবেশ করুন।
freeguard shell
freeguard dashboard
রিয়েল-টাইম ট্রাফিক গ্রাফ, নোড তালিকা, এবং সংযোগের বিবরণসহ TUI ড্যাশবোর্ড খুলুন।
freeguard dashboard
Last updated: March 2026