Pastol enables users to interact with paste.lol service directly from the command line. Allows you to share text and files quickly and conveniently.
pastol <COMMAND>add Create or update a pastebin on paste.lol
remove || rm - Remove a pastebin on paste.lol
download || dl - Download by title a pastebin
list || ls - List all pastebins
view || cat - View by title the pastebin
search || find - Search by title for pastebins
settings || config - Change the settings
help Print this message or the help of the given subcommand(s)
Install rust and cargo.
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shInstall pastol.
With binstall (better)
Install binstall
curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
Set-ExecutionPolicy Unrestricted -Scope Process; iex (iwr "https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.ps1").Content
Install pastol
cargo binstall pastolWithout binstall
If on Linux or maybe macOS(feedback needed):
macOS (Homebrew)
brew install openssl@3macOS (MacPorts)
sudo port install opensslArch Linux
sudo pacman -S pkg-config opensslDebian and Ubuntu
sudo apt-get install pkg-config libssl-devFedora
sudo dnf install pkg-config perl-FindBin openssl-develAlpine Linux
apk add pkgconfig openssl-devopenSUSE
sudo zypper in libopenssl-develInstall the crate.
cargo install pastolSet user and API key.
pastol --setuser your_username --setapikey your_api_key
# if the env var api_omg_lol is set it will be used insteadExampe as adam.
pastel --setuser adam --setapikey a321dwageaawdwadwYour API key is stored locally in the config file. Linux example path:
.config/pastol/config.tomlpastol --setunlist trueUpload a file.
pastol example.txtDownload a pastebin as a file.
pastol download example-title-as-apears-on-the-urlUpload a file with custom title.
pastol add example.txt -t "Example Title"Upload a file with custom content.
pastol add example.txt -c "This is the content of the example file."Upload a custom.
pastol add -t title-example -c "pastebin content example"Remove a pastebin.
pastol remove hello-worldList all listed pastebins.
pastol listView the pastebin.
pastol view exampleSearch by title for pastebins.
pastol search exaInstall cargo
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shClone the repo
git clone https://github.com/M1n-74316D65/PastolIf on Linux install or maybe macos():
macOS (Homebrew)
brew install openssl@3macOS (MacPorts)
sudo port install opensslArch Linux
sudo pacman -S pkg-config opensslDebian and Ubuntu
sudo apt-get install pkg-config libssl-devFedora
sudo dnf install pkg-config perl-FindBin openssl-develAlpine Linux
apk add pkgconfig openssl-devopenSUSE
sudo zypper in libopenssl-develBuild
cargo build./target/debug/pastolFor more info check the justfile or use just.