Back to services

transfer.sh

Easy file sharing from the command line.

View alternatives to transfer.sh
Suggest edit
Open source
Self-hostable
MIT
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Note: We were unable to fetch the official website (the GitHub repository page) this time. The content below is based on existing knowledge of the project. For deployment parameters and other details, please refer to the repository README.

Overview

transfer.sh is an open-source file sharing service developed by dutchcoders, with a command-line-first approach. You upload a file from the terminal using common tools such as curl, and the server returns a download link. Send that link to someone else and they can download the file, with no account registration and no dedicated client to install. The project is written in Go and released under the MIT license, which makes it well suited to self-hosting as a private service for temporary file transfers.

Key Features

  • Command-line upload: Run curl --upload-file ./hello.txt https://your-domain/hello.txt to upload a file and get a download link. You can also pipe the output of other commands straight into an upload.
  • Web upload: In addition to the command line, a web interface is available for uploading from the browser.
  • Download limits: Set limits through HTTP request headers at upload time, for example Max-Downloads to cap the number of downloads and Max-Days to set how many days the file is kept.
  • Deletion link: After an upload, the response includes a deletion URL (X-Url-Delete) that you can use to delete the uploaded file yourself.
  • Multiple storage backends: Supports the local filesystem, Amazon S3 and S3-compatible object storage, Google Drive, Storj, and more.
  • Use with encryption: You can encrypt files on the client side with a tool such as gpg before uploading, so the server only stores ciphertext.
  • Optional virus scanning: Can be integrated with ClamAV or VirusTotal to scan uploaded files.

Target Users and Use Cases

  • Developers and operations staff who work in the terminal a lot and need to pass files between servers or to colleagues temporarily.
  • Teams that need to share logs, build artifacts, or diagnostic information, and can upload automatically from scripts or CI pipelines.
  • Individuals or organizations that don't want to rely on third-party cloud drives and prefer to keep files on their own servers.

Core Strengths

  • Almost no barrier to entry: it works on any system that has curl.
  • A single Go program, so deployment and maintenance are lightweight.
  • Flexible storage backends: files can be kept on local disk or in cloud object storage.
  • Open source and self-hostable, so you stay in control of your data.

Installation and Deployment

  • Docker: An official Docker image is provided. You can start it with a command like docker run -p 8080:8080 dutchcoders/transfer.sh:latest --provider local --basedir /tmp/; the --provider parameter selects the storage backend.
  • Binary or source: You can download a prebuilt release binary, or build from source with the Go toolchain.
  • Configuration: Use command-line arguments or environment variables to configure the listen address, the storage backend and its credentials, TLS certificates, rate limiting, virus scanning, and other options.

Technical Requirements

  • A Linux, macOS, or Windows host that can run a Go binary or Docker.
  • If you choose a backend such as S3, Google Drive, or Storj, you will need an account and credentials for the corresponding service.
  • For public deployments, we recommend setting up HTTPS and a reverse proxy.

Things to Note

  • The service itself is mainly intended for temporary sharing. To keep files confidential, we recommend relying on client-side encryption.
  • When deploying publicly, consider the risk of abuse; you can combine rate limiting, access control, and virus scanning.