anypaste /path/to/file to upload any file. Anypaste will find a good hosting site automatically, based on the file type.
Anypaste is a command-line program available for Linux, Mac, and other *nix based systems.
Simple: Anypaste is just a shell script. You don't need to install the right version of python, use a special package manager, or care about dependencies — you already have them installed.
Pluggable: Anypaste has a
powerful decent plugin system, and makes it easy to add extra uploading sites that aren't supported out of the box.
Versatile: Anypaste supports a variety of hosting sites, for most common file types: images, videos, code, documents, etc. It will choose the right one for your files automatically. Some need authentication, look at the docs to set that up!
Does what you want: Will automatically tarball directories, can read from stdin, etc. When it should work, it does.
Configurable: With over 3 command line options, you can make anypaste do anything you want, as long as what you want to do is select a plugin! But seriously: you can use interactive mode, bypass plugin compatibility checks, and more.
Free: Anypaste is licensed under the GPLv3. Basically, I don't have to pay people who contribute to it! PRs welcome.
sudo mkdir -p /usr/local/bin/ && sudo curl -o /usr/local/bin/anypaste https://anypaste.xyz/sh && sudo chmod +x /usr/local/bin/anypaste