Files
hermes-skillsharing/skills/devops/peer-dashboard/references/tailscale-commands.md
T

34 lines
950 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Common Tailscale CLI invocations (Termux/Android)
## Check status (uses local socket)
```bash
tailscale --socket=/data/data/com.termux/files/usr/var/run/tailscaled.sock status
```
## Bring up the local device (if not yet authorised)
```bash
tailscale up --advertise-routes=100.64.0.0/10 --accept-dns=false
```
## List all peers with IP, OS and labels
```bash
tailscale --socket=/data/data/com.termux/files/usr/var/run/tailscaled.sock status --json | python3 -c "import sys,json; d=json.load(sys.stdin); [print(f'{k}: {v[\"addr\"]} {v[\"hostName\"]} {v[\"os\"]} {v[\"tags\"]}') for k,v in d[\"PeerMap\"].items()]"
```
## Refresh lease / re‑authorise
```bash
tailscale up --reset
```
## Export peer data for the dashboard daemon
The daemon (`daemon.py`) runs:
```bash
tailscale --socket=/data/data/com.termux/files/usr/var/run/tailscaled.sock status --json > /data/data/com.termux/files/home/artifacts/peer_dashboard/peers.data.json
```