[{"data":1,"prerenderedAt":207,"buildId":208},["ShallowReactive",2],{"docs:\u002Fguide":3},{"page":4,"section":17,"document":18,"credits":11,"prev":11,"next":205},{"id":5,"path":6,"file":7,"title":8,"sourceTitle":9,"description":10,"tagline":10,"eyebrow":11,"credits":11,"keywords":12,"icon":13,"layout":14,"sidebar":15,"toc":15,"kind":11,"group":11,"navigation":15,"order":16},"index","\u002Fguide","guide\u002Findex.md","Introduction","Introduction to fleethosts","fleethosts reaches machines over ssh and Tailscale from Node, with no runtime dependencies.",null,[],"i-lucide-book-open","article",true,1,"guide",{"nodes":19,"toc":202},[20,24,76,91,112,120,183,189],[21,22,23],"p",{},"fleethosts runs one command on many machines from a Node program. You list the machines as fleet entries, and fleethosts turns them into ssh targets, runs the command on each at once, and returns what every machine gave back.",[25,26,29],"pre",{"language":27,"class":28,"wrap":15},"ts","shiki shiki-themes github-light-default github-dark-default dark:github-dark-default",[30,31,33],"code",{"class":32},"language-ts",[34,35,38,42,46,49,53,57,60,63,65,68,70,73],"span",{"class":36,"style":37},"line","display: inline",[34,39,41],{"style":40},"color:#CF222E;--shiki-dark:#FF7B72","const",[34,43,45],{"style":44},"color:#0550AE;--shiki-dark:#79C0FF"," entries",[34,47,48],{"style":40}," =",[34,50,52],{"style":51},"color:#1F2328;--shiki-dark:#E6EDF3"," [",[34,54,56],{"style":55},"color:#0A3069;--shiki-dark:#A5D6FF","\"vps\"",[34,58,59],{"style":51},", ",[34,61,62],{"style":55},"\"me@100.64.0.7\"",[34,64,59],{"style":51},[34,66,67],{"style":55},"\"ssh:\u002F\u002Fdeploy@build.example.com:2222\"",[34,69,59],{"style":51},[34,71,72],{"style":55},"\"tag:servers\"",[34,74,75],{"style":51},"];",[21,77,78,79,82,83,86,87,90],{},"A fleet entry is a host, ",[30,80,81],{},"user@host",", an IP address, an ssh_config alias, an ",[30,84,85],{},"ssh:\u002F\u002F"," URL, or a Tailscale ",[30,88,89],{},"tag:",". A tag stands for every machine on your tailnet with that tag.",[21,92,93,94,59,97,59,100,103,104,107,108,111],{},"fleethosts has no runtime dependencies. It runs ",[30,95,96],{},"ssh",[30,98,99],{},"tailscale",[30,101,102],{},"sh"," and ",[30,105,106],{},"node"," from the machine, so your ",[30,109,110],{},"~\u002F.ssh\u002Fconfig"," applies as it does in a shell.",[113,114,119],"h2",{"id":115,"anchor":116},"three-entries",{"label":117,"icon":118},"Section titled \"Three entries\"","#","Three entries",[121,122,123,136],"table",{},[124,125,126],"thead",{},[127,128,129,133],"tr",{},[130,131,132],"th",{},"Import",[130,134,135],{},"What it holds",[137,138,139,155,169],"tbody",{},[127,140,141,147],{},[142,143,144],"td",{},[30,145,146],{},"fleethosts",[142,148,149,154],{},[150,151,153],"a",{"href":152},"\u002Fguide\u002Fhosts","Hosts",": check entries, expand tags, run on each machine, record the fleet",[127,156,157,162],{},[142,158,159],{},[30,160,161],{},"fleethosts\u002Fexec",[142,163,164,168],{},[150,165,167],{"href":166},"\u002Fguide\u002Fexec","Exec",": run a command to the end, with timeouts and cancels that stop what it started",[127,170,171,176],{},[142,172,173],{},[30,174,175],{},"fleethosts\u002Fplaces",[142,177,178,182],{},[150,179,181],{"href":180},"\u002Fguide\u002Fplaces","Places",": your program's folders and the names it writes under",[21,184,185,186,188],{},"Every function that reads or writes your program's files takes a ",[30,187,181],{},". fleethosts names no program of its own: the files it writes and the environment variables it reads all take your program's name.",[21,190,191,192,196,197,201],{},"Start with ",[150,193,195],{"href":194},"\u002Fguide\u002Finstallation","Installation",", or read the ",[150,198,200],{"href":199},"\u002Freference\u002Fapi","API reference",".",[203],{"id":115,"depth":204,"text":119},2,{"path":194,"title":195,"description":206},"Install fleethosts, give it your program's places, and run a first command on your machines.",1796388535820,"7b1f70a7-2953-4287-ada9-b3dc097b349d"]