@univ-lehavre/atlas-net-cli
v0.2.2
Published
CLI tool for network diagnostics
Maintainers
Readme
@univ-lehavre/atlas-net-cli
CLI tool for network diagnostics, useful for debugging connectivity issues.
Installation
pnpm add @univ-lehavre/atlas-net-cliUsage
Interactive Mode (default)
atlas-netPrompts for a URL and runs diagnostics with visual feedback:
◆ Atlas Network Diagnostics
◆ Enter target URL to diagnose
│ https://example.com
✓ DNS Resolution (12ms) → 93.184.216.34
✓ TCP Connect (45ms)
✓ TLS Handshake (89ms) → example.com
◆ DoneDirect URL
atlas-net https://example.comCI Mode
# Non-interactive output, exit code indicates success/failure
atlas-net --ci https://example.comOutput in CI mode:
[OK ] DNS Resolution 12ms - 93.184.216.34
[OK ] TCP Connect 45ms
[OK ] TLS Handshake 89ms - example.comOptions
-c, --ci CI mode (no interactive prompts, plain output)
-h, --help Show help messageDiagnostic Steps
The tool runs the following checks in sequence:
- DNS Resolution - Resolves the hostname to an IP address
- TCP Connect - Verifies the port is open and reachable
- TLS Handshake - (HTTPS only) Validates SSL/TLS certificate
If a step fails, the tool automatically runs an Internet Check to determine if the issue is local connectivity.
Exit Codes
0: All diagnostics passed1: One or more diagnostics failed
License
MIT
