transfersh
is a Command-Line Interface (CLI) tool to easily upload files or directories to transfer.sh. The app is specifically designed around the transfer.sh infrastructure.
- Upload files or directories directly from the command line.
- Automatically compresses directories into a
.zip
file for uploading. - Provides a direct download link for the uploaded content.
- Returns a
curl
command for content deletion. - Simple configuration stored in
~/.config/transfersh/.config
.
You need to have Go installed. Then you can get the tool via:
go install github.com/bariiss/transfersh@latest
transfersh [file|directory]
- file: The path to the file you want to upload.
- directory: The path to the directory you want to compress and upload.
The tool will return the URL for your uploaded content. If the content is a directory, it will be compressed as a .zip file and then uploaded.
On the first run, the CLI will prompt you for the transfer.sh base URL and your optional user and pass (for basic authentication if enabled on your transfer.sh instance). The configuration will be saved at ~/.config/transfersh/.config.
MIT
This tool was created in 2023 by bariiss