Tailscale CLI
$ tailscale Official Med RiskTailscale CLI (tailscale) inspects and configures host participation in a Tailscale WireGuard tailnet, offering --json on status, whois, and netcheck --format=json, latency diagnostics via tailscale ping, and headless TS_AUTHKEY enrollment.
brew install tailscale tailscale talks directly to the local host tailscaled socket to emit --json peer topology and network diagnostics.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
status --json, whois --json, and netcheck --format=json return rich, clean JSON for mesh diagnostics.
- Supports
--jsononstatus/whoisand--format=jsononnetcheck
Read diagnostics are completely safe, while up/set/down alter host networking (requiring elevated privileges on Linux/Windows).
- Safe read-only status/netcheck;
up/downmutates host routing
Fast Go CLI across macOS, Linux, and Windows, requiring the local tailscaled daemon.
- Cross-platform Go CLI paired with
tailscaled
Instant tailnet topology, MagicDNS, and DERP latency visibility in JSON.
- Rich peer and NAT JSON diagnostics
Official tailscale/tailscale repository actively maintained under BSD-3-Clause.
- Official
tailscale/tailscalerepository
Clear tailscale.com/kb/1080/cli knowledge base and --help.
- Official KB at tailscale.com/kb/1080/cli
Security, Auth & Guardrails
Persists node identity in the local tailscaled daemon state (/var/lib/tailscale/ on Linux) and supports headless enrollment via TS_AUTHKEY / --auth-key.
Client CLI is open-source (BSD-3-Clause); Tailscale offers a generous free tier and paid team plans.
# Tailscale CLI Agent Rules - Use read-only `tailscale status --json`, `whois --json`, and `netcheck --format=json` for diagnostics. - Never run `tailscale up`, `tailscale set`, or `tailscale down` without user approval, as it can sever SSH/agent connectivity. - Never print raw `TS_AUTHKEY` values in command outputs.
Agent-Ready Command Recipes
Safe Read-Only Queries
tailscale status --json
Returns self IP, MagicDNS name, exit node status, and connected peers as JSON.
tailscale netcheck --format=json
Probes UDP/DERP relay latencies and NAT type without altering routing.
Strengths for Agents
- +
tailscale status --jsonandnetcheck --format=jsonprovide rich network telemetry. - + Fast Go binary with clean headless auth via
TS_AUTHKEY. - + BSD-3-Clause open-source client with strong active maintenance.
Caveats & Pitfalls
- !
tailscale uprequires re-specifying existing flags or usingtailscale setto avoid resetting options. - ! Flag naming alternates between
--json(status,whois) and--format=json(netcheck).