34 lines
950 B
Markdown
34 lines
950 B
Markdown
# 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
|
||
```
|