Upload an HTML file to pagedrop.io from the terminal. Gets a shareable URL instantly.
curl -sSL https://raw.githubusercontent.com/nadimtuhin/pagedrop-cli/main/install | bashInstalls to ~/.local/bin/pagedrop and adds it to your PATH.
mkdir -p ~/.local/bin
curl -fsSL https://raw.githubusercontent.com/nadimtuhin/pagedrop-cli/main/pagedrop \
-o ~/.local/bin/pagedrop
chmod +x ~/.local/bin/pagedrop
export PATH="$HOME/.local/bin:$PATH"pagedrop file.html # uses default TTL of 3d
pagedrop file.html --ttl 7d # keep it live for 7 days
pagedrop --ttl 1h file.html # URL expires in 1 hour
pagedrop --help # full usagecurl(pre-installed on macOS)jqorpython3(for JSON encoding — one of these is usually already available)
The script reads your HTML file, POSTs it to pagedrop.io's API, and prints the resulting share URL. No registration or API key needed.