site: static sites, live in one command. Agents and automation: deploy with site --no-copy and read the URL from stdout. The key in site key owns your deploys and names; never print, log or share it. Remove deploys you made for a one-off task with site rm when the task is done. INSTALL brew install stoffbergie/tap/site # Install the site CLI with Homebrew on macOS or Linux. USE site dist # Upload a folder in one request and print a URL like https://k3m9xq2a.site.stoff.dev. Every deploy gets its own URL and never changes. site dist -n todo # Also point https://todo.site.stoff.dev at this deploy. The first deploy claims the name; later deploys with your key move it. site ls # List your names, the deploy each points at, and your deploys with their age, size and file count. site point todo k3m9xq2a # Point a name at one of your earlier deploys. site rm k3m9xq2a # Delete a deploy, or release a name with site rm todo. A deploy a name points at stays until the name moves. MORE site index.html style.css # Deploy files from different places; each lands at the root under its filename. cat page.html | site - # Deploy stdin as index.html. site dist --spa # Serve index.html for unknown paths without a file extension, so client-side routes work. site key # Print the key that owns your deploys and names. It is made the first time you deploy and kept on this machine. site key # Save your key on a second machine to deploy, list and remove the same sites from there. CURL curl -T page.html https://site.stoff.dev # Upload a single file; its type comes from the filename and it is served at / and under its name. Prints the URL. curl -T page.html -H 'Authorization: Bearer ' 'https://site.stoff.dev/?name=todo' # Deploy with your key to own the deploy and claim or move a name. curl -H 'Authorization: Bearer ' https://site.stoff.dev/list # Your names and deploys. curl -X DELETE -H 'Authorization: Bearer ' https://site.stoff.dev/deploys/ # Remove a deploy you own. DELETE /names/ releases a name. Deploys stay until you remove them. Each deploy holds up to 100 MB and 5000 files; each key holds up to 20 names. Names are 3 to 40 lowercase letters, digits and hyphens. Errors are plain text: 400 bad upload or name, 401 missing key, 403 not yours, 409 name taken, 413 too large, 429 too many requests. Report abuse or problems: https://github.com/Stoffbergie/site/issues