[{"data":1,"prerenderedAt":398,"buildId":399},["ShallowReactive",2],{"docs:\u002Fguide\u002Finstallation":3},{"page":4,"section":16,"document":17,"credits":10,"prev":390,"next":394},{"id":5,"path":6,"file":7,"title":8,"sourceTitle":8,"description":9,"tagline":9,"eyebrow":10,"credits":10,"keywords":11,"icon":12,"layout":13,"sidebar":14,"toc":14,"kind":10,"group":10,"navigation":14,"order":15},"installation","\u002Fguide\u002Finstallation","guide\u002Finstallation.md","Installation","Install fleethosts, give it your program's places, and run a first command on your machines.",null,[],"i-lucide-download","article",true,2,"guide",{"nodes":18,"toc":383},[19,125,137,145],[20,21,47,77,94,110],"tabs",{"uid":22,"count":23,"labels":24,"sync":29,"code":30,"magic":31,"icons":32},"ct-211bx2-1","4",[25,26,27,28],"pnpm","npm","yarn","bun","pm","true","auto",[33,38,41,44],{"name":34,"src":35,"ratio":36,"mask":37},"pm:pnpm","data:image\u002Fsvg+xml,%3Csvg xmlns='http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg' viewBox='0 0 32 32'%3E%3Cpath fill='%23f9ad00' d='M30 10.75h-8.749V2H30Zm-9.626 0h-8.75V2h8.75Zm-9.625 0H2V2h8.749ZM30 20.375h-8.749v-8.75H30Z'\u002F%3E%3Cpath fill='%238a8a8a' d='M20.374 20.375h-8.75v-8.75h8.75Zm0 9.625h-8.75v-8.75h8.75ZM30 30h-8.749v-8.75H30Zm-19.251 0H2v-8.75h8.749Z'\u002F%3E%3C\u002Fsvg%3E",1,false,{"name":39,"src":40,"ratio":36,"mask":37},"pm:npm","data:image\u002Fsvg+xml,%3Csvg xmlns='http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg' viewBox='0 0 32 32'%3E%3Cpath fill='%23c12127' d='M2 2h28v28H2'\u002F%3E%3Cpath fill='%238a8a8a' d='M7.25 7.25h17.5v17.5h-3.5v-14H16v14H7.25'\u002F%3E%3C\u002Fsvg%3E",{"name":42,"src":43,"ratio":36,"mask":37},"pm:yarn","data:image\u002Fsvg+xml,%3Csvg xmlns='http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg' viewBox='0 0 32 32'%3E%3Cpath fill='%232188b6' d='M28.208 24.409a10.5 10.5 0 0 0-3.959 1.822a23.7 23.7 0 0 1-5.835 2.642a1.63 1.63 0 0 1-.983.55a62 62 0 0 1-6.447.577c-1.163.009-1.876-.3-2.074-.776a1.573 1.573 0 0 1 .866-2.074a4 4 0 0 1-.514-.379c-.171-.171-.352-.514-.406-.388c-.225.55-.343 1.894-.947 2.5c-.83.839-2.4.559-3.328.072c-1.019-.541.072-1.813.072-1.813a.73.73 0 0 1-.992-.343a4.85 4.85 0 0 1-.667-2.949a5.37 5.37 0 0 1 1.749-2.895a9.3 9.3 0 0 1 .658-4.4a10.45 10.45 0 0 1 3.165-3.661S6.628 10.747 7.35 8.817c.469-1.262.658-1.253.812-1.308a3.6 3.6 0 0 0 1.452-.857a5.27 5.27 0 0 1 4.41-1.7S15.2 1.4 16.277 2.09a18.4 18.4 0 0 1 1.533 2.886s1.281-.748 1.425-.469a11.33 11.33 0 0 1 .523 6.132a14 14 0 0 1-2.6 5.411c-.135.225 1.551.938 2.615 3.887c.983 2.7.108 4.96.262 5.212c.027.045.036.063.036.063s1.127.09 3.391-1.308a8.5 8.5 0 0 1 4.277-1.604a1.081 1.081 0 0 1 .469 2.11Z'\u002F%3E%3C\u002Fsvg%3E",{"name":45,"src":46,"ratio":36,"mask":37},"pm:bun","data:image\u002Fsvg+xml,%3Csvg xmlns='http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg' viewBox='0 0 32 32'%3E%3Cpath fill='%23fbf0df' d='M29 17c0 5.65-5.82 10.23-13 10.23S3 22.61 3 17c0-3.5 2.24-6.6 5.66-8.44S14.21 4.81 16 4.81s3.32 1.54 7.34 3.71C26.76 10.36 29 13.46 29 17'\u002F%3E%3Cpath fill='none' stroke='%23000' d='M16 27.65c7.32 0 13.46-4.65 13.46-10.65c0-3.72-2.37-7-5.89-8.85c-1.39-.75-2.46-1.41-3.37-2l-1.13-.69A6.14 6.14 0 0 0 16 4.35a6.9 6.9 0 0 0-3.3 1.23c-.42.24-.86.51-1.32.8c-.87.54-1.83 1.13-3 1.73C4.91 10 2.54 13.24 2.54 17c0 6 6.14 10.65 13.46 10.65Z'\u002F%3E%3Cellipse cx='21.65' cy='18.62' fill='%23febbd0' rx='2.17' ry='1.28'\u002F%3E%3Cellipse cx='10.41' cy='18.62' fill='%23febbd0' rx='2.17' ry='1.28'\u002F%3E%3Cpath fill-rule='evenodd' d='M11.43 18.11a2 2 0 1 0-2-2.05a2.05 2.05 0 0 0 2 2.05m9.2 0a2 2 0 1 0-2-2.05a2 2 0 0 0 2 2.05'\u002F%3E%3Cpath fill='%238a8a8a' fill-rule='evenodd' d='M10.79 16.19a.77.77 0 1 0-.76-.77a.76.76 0 0 0 .76.77m9.2 0a.77.77 0 1 0 0-1.53a.77.77 0 0 0 0 1.53'\u002F%3E%3Cpath fill='%23b71422' stroke='%23000' stroke-width='.75' d='M18.62 19.67a3.3 3.3 0 0 1-1.09 1.75a2.48 2.48 0 0 1-1.5.69a2.53 2.53 0 0 1-1.5-.69a3.28 3.28 0 0 1-1.08-1.75a.26.26 0 0 1 .29-.3h4.58a.27.27 0 0 1 .3.3Z'\u002F%3E%3Cpath fill='%23ccbea7' fill-rule='evenodd' d='M14.93 5.75a6.1 6.1 0 0 1-2.09 4.62c-.1.09 0 .27.11.22c1.25-.49 2.94-1.94 2.23-4.88c-.03-.15-.25-.11-.25.04m.85 0a6 6 0 0 1 .57 5c0 .13.12.24.21.13c.83-1 1.54-3.11-.59-5.31c-.1-.11-.27.04-.19.17Zm1-.06a6.1 6.1 0 0 1 2.53 4.38c0 .14.21.17.24 0c.34-1.3.15-3.51-2.66-4.66c-.12-.02-.21.18-.09.27ZM9.94 9.55a6.27 6.27 0 0 0 3.89-3.33c.07-.13.28-.08.25.07c-.64 3-2.79 3.59-4.13 3.51c-.14-.01-.14-.21-.01-.25'\u002F%3E%3C\u002Fsvg%3E",[48,49,52],"tabs-item",{"label":25,"index":50,"icon":51},"1",{"name":34,"src":35,"ratio":36,"mask":37},[53,54,58],"pre",{"language":55,"frame":56,"class":57,"wrap":14},"sh","terminal","shiki shiki-themes github-light-default github-dark-default dark:github-dark-default",[59,60,62],"code",{"class":61},"language-sh",[63,64,67,70,74],"span",{"class":65,"style":66},"line","display: inline",[63,68,25],{"style":69},"color:#953800;--shiki-dark:#FFA657",[63,71,73],{"style":72},"color:#0A3069;--shiki-dark:#A5D6FF"," add",[63,75,76],{"style":72}," fleethosts",[48,78,81],{"label":26,"index":79,"icon":80},"2",{"name":39,"src":40,"ratio":36,"mask":37},[53,82,83],{"language":55,"frame":56,"class":57,"wrap":14},[59,84,85],{"class":61},[63,86,87,89,92],{"class":65,"style":66},[63,88,26],{"style":69},[63,90,91],{"style":72}," install",[63,93,76],{"style":72},[48,95,98],{"label":27,"index":96,"icon":97},"3",{"name":42,"src":43,"ratio":36,"mask":37},[53,99,100],{"language":55,"frame":56,"class":57,"wrap":14},[59,101,102],{"class":61},[63,103,104,106,108],{"class":65,"style":66},[63,105,27],{"style":69},[63,107,73],{"style":72},[63,109,76],{"style":72},[48,111,113],{"label":28,"index":23,"icon":112},{"name":45,"src":46,"ratio":36,"mask":37},[53,114,115],{"language":55,"frame":56,"class":57,"wrap":14},[59,116,117],{"class":61},[63,118,119,121,123],{"class":65,"style":66},[63,120,28],{"style":69},[63,122,73],{"style":72},[63,124,76],{"style":72},[126,127,128,129,132,133,136],"p",{},"Requires Node 22.20 or later, and ",[59,130,131],{},"ssh"," on ",[59,134,135],{},"PATH",". Tags also need the Tailscale CLI.",[138,139,144],"h2",{"id":140,"anchor":141},"first-run",{"label":142,"icon":143},"Section titled \"First run\"","#","First run",[146,147,148,211,286],"steps",{},[149,150,151,158],"step",{"index":50},[152,153,157],"h3",{"id":154,"anchor":155},"name-your-program",{"label":156,"icon":143},"Section titled \"Name your program\"","Name your program",[53,159,161],{"language":160,"class":57,"wrap":14},"ts",[59,162,164,183,184,183,186],{"class":163},"language-ts",[63,165,166,170,174,177,180],{"class":65,"style":66},[63,167,169],{"style":168},"color:#CF222E;--shiki-dark:#FF7B72","import",[63,171,173],{"style":172},"color:#1F2328;--shiki-dark:#E6EDF3"," { standardPlaces } ",[63,175,176],{"style":168},"from",[63,178,179],{"style":72}," \"fleethosts\"",[63,181,182],{"style":172},";","\n",[63,185],{"class":65,"style":66},[63,187,188,191,195,198,202,205,208],{"class":65,"style":66},[63,189,190],{"style":168},"const",[63,192,194],{"style":193},"color:#0550AE;--shiki-dark:#79C0FF"," places",[63,196,197],{"style":168}," =",[63,199,201],{"style":200},"color:#8250DF;--shiki-dark:#D2A8FF"," standardPlaces",[63,203,204],{"style":172},"(",[63,206,207],{"style":72},"\"mytool\"",[63,209,210],{"style":172},");",[149,212,213,219],{"index":79},[152,214,218],{"id":215,"anchor":216},"check-the-entries",{"label":217,"icon":143},"Section titled \"Check the entries\"","Check the entries",[53,220,221],{"language":160,"class":57,"wrap":14},[59,222,223,183,236,183,238,183,262],{"class":163},[63,224,225,227,230,232,234],{"class":65,"style":66},[63,226,169],{"style":168},[63,228,229],{"style":172}," { fleetEntryProblem } ",[63,231,176],{"style":168},[63,233,179],{"style":72},[63,235,182],{"style":172},[63,237],{"class":65,"style":66},[63,239,240,242,245,247,250,253,256,259],{"class":65,"style":66},[63,241,190],{"style":168},[63,243,244],{"style":193}," entries",[63,246,197],{"style":168},[63,248,249],{"style":172}," [",[63,251,252],{"style":72},"\"vps\"",[63,254,255],{"style":172},", ",[63,257,258],{"style":72},"\"tag:servers\"",[63,260,261],{"style":172},"];",[63,263,264,266,269,271,274,277,280,283],{"class":65,"style":66},[63,265,190],{"style":168},[63,267,268],{"style":193}," problems",[63,270,197],{"style":168},[63,272,273],{"style":172}," entries.",[63,275,276],{"style":200},"map",[63,278,279],{"style":172},"(fleetEntryProblem).",[63,281,282],{"style":200},"filter",[63,284,285],{"style":172},"(Boolean);",[149,287,288,294,380],{"index":96},[152,289,293],{"id":290,"anchor":291},"run-a-command",{"label":292,"icon":143},"Section titled \"Run a command\"","Run a command",[53,295,296],{"language":160,"class":57,"wrap":14},[59,297,298,183,311,183,313,183,346,183,360,183,376],{"class":163},[63,299,300,302,305,307,309],{"class":65,"style":66},[63,301,169],{"style":168},[63,303,304],{"style":172}," { resolveHosts, runOnHosts } ",[63,306,176],{"style":168},[63,308,179],{"style":72},[63,310,182],{"style":172},[63,312],{"class":65,"style":66},[63,314,315,317,320,322,325,328,331,334,337,340,343],{"class":65,"style":66},[63,316,190],{"style":168},[63,318,319],{"style":193}," runs",[63,321,197],{"style":168},[63,323,324],{"style":168}," await",[63,326,327],{"style":200}," runOnHosts",[63,329,330],{"style":172},"(places, ",[63,332,333],{"style":168},"async",[63,335,336],{"style":172}," (",[63,338,339],{"style":69},"remoteCommand",[63,341,342],{"style":172},") ",[63,344,345],{"style":168},"=>",[63,347,348,351,354,357],{"class":65,"style":66},[63,349,350],{"style":172},"  (",[63,352,353],{"style":168},"await",[63,355,356],{"style":200}," resolveHosts",[63,358,359],{"style":172},"(places, entries, { remoteCommand })).targets,",[63,361,362,365,368,370,373],{"class":65,"style":66},[63,363,364],{"style":172},"  [",[63,366,367],{"style":72},"\"uname\"",[63,369,255],{"style":172},[63,371,372],{"style":72},"\"-a\"",[63,374,375],{"style":172},"],",[63,377,378],{"class":65,"style":66},[63,379,210],{"style":172},[126,381,382],{},"ssh runs in batch mode, so a host that asks for a password is unreachable. Load your key into an agent first.",[384],{"id":140,"depth":15,"text":144,"children":385},[386,388,389],{"id":154,"depth":387,"text":157},3,{"id":215,"depth":387,"text":218},{"id":290,"depth":387,"text":293},{"path":391,"title":392,"description":393},"\u002Fguide","Introduction","fleethosts reaches machines over ssh and Tailscale from Node, with no runtime dependencies.",{"path":395,"title":396,"description":397},"\u002Fguide\u002Fplaces","Places","A Places object names your program and its folders. fleethosts writes and reads under that name only.",1796388536205,"7b1f70a7-2953-4287-ada9-b3dc097b349d"]