░██████╗██╗░░░░░██╗███╗░░██╗░██████╗░
██╔════╝██║░░░░░██║████╗░██║██╔════╝░
╚█████╗░██║░░░░░██║██╔██╗██║██║░░██╗░
░╚═══██╗██║░░░░░██║██║╚████║██║░░╚██╗
██████╔╝███████╗██║██║░╚███║╚██████╔╝
╚═════╝░╚══════╝╚═╝╚═╝░░╚══╝░╚═════╝░
Sling is a simple, blazing-fast CLI tool written in Go that lets you share any folder over HTTP — right from your terminal. No external servers, no configuration — just run and sling!
- Serve any local folder over HTTP instantly
- Auto-detects internal IP so devices on the same network can access it
- Simple, single-command interface
Use the one-liner script below to install Sling:
curl -L https://raw.githubusercontent.com/pabhi18/sling/main/install.sh | sh
This will download the latest version and place it in /usr/local/bin/sling
.
sling serve
- Serves the current directory on port
8080
- Accessible from other devices on the same network using your internal IP
sling serve --path ./your-folder -p 9090
- Replace
./your-folder
with the path you want to serve - Change
9090
to any port you prefer
- Instantly share files across your devices
- Let teammates quickly download a build or logs
- Temporary local file hosting during testing or development
git clone https://github.com/pabhi18/Sling.git
cd Sling
go build -o sling
MIT License
Pull requests, feature ideas, and improvements are welcome!
Made with ❤️ by Abhinav Pratap