A CLI tool for rustypaste.

Installation
crates.io
Arch Linux
pacman -S rustypaste-cli
Alpine Linux
rustypaste-cli is available for Alpine Edge. It can be installed via apk after enabling the testing repository.
Binary releases
See the available binaries on releases page.
Build from source
Usage
rpaste [options] <file(s)>
-h, --help prints help information
-v, --version prints version information
-o, --oneshot generates one shot links
-p, --pretty prettifies the output
-c, --config CONFIG sets the configuration file
-s, --server SERVER sets the address of the rustypaste server
-a, --auth TOKEN sets the authentication token
-u, --url URL sets the URL to shorten
-r, --remote URL sets the remote URL for uploading
-e, --expire TIME sets the expiration time for the link
Set credentials
Either set the credentials on the command line (not recommended):
or specify them in the configuration file.
Upload files
Upload from stdin
|
Shorten URLs
Paste from URL
One shot
One shot URL
Expiration
* Supported units: ns, us, ms, sec, min, hours, days, weeks, months, years
Extras
- Show a prettier output:
rpaste -p [...] - Disable colors in the output:
NO_COLOR=1 rpaste -p [...]
Configuration
The configuration file can be specified via --config argument and RPASTE_CONFIG environment variable or it can be placed to the following global locations:
$HOME/.config/rustypaste/config.toml$HOME/.rustypaste/config.toml
See config.toml for configuration options.
Contributing
Pull requests are welcome!