Termbin is a tool that lets you create termbins (like pastebins) from the command line.
# create a termbin from a file
termbin main.rs
# can read from stdin as well, just omit the filename:
echo testing | termbin
# copy the url after creating it (instead of printing it)
termbin main.rs -c
You'll need an up to date rust toolchain and git.
# recommended:
git clone https://github.com/insomnimus/termbin
cd termbin
git checkout main
cargo install --path .
# alternative:
cargo install --git https://github.com/insomnimus/termbin --branch main