Skip to content

SculkDev/ruhaste-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ruhaste

CLI client for hastebin.ru — a Hastebin-compatible pastebin.

Install

npm install -g @sculkdev/ruhaste

Requires Node.js ≥ 18. No external dependencies.

Usage

Post a paste

# from stdin
echo "hello world" | ruhaste
cat file.txt | ruhaste

# from a file
ruhaste ./notes.txt

# bash process substitution
ruhaste <(echo "hello")

Prints the URL of the created paste, e.g. https://hastebin.ru/abc123.

Fetch a paste

ruhaste get abc123
ruhaste get https://hastebin.ru/abc123

Help

ruhaste help

Configuration

Variable Default Description
RUHASTE_SERVER https://hastebin.ru Base URL of the server

Point at a self-hosted instance:

export RUHASTE_SERVER=http://localhost:7331
echo "test" | ruhaste

Composing with other tools

# share the output of a command
npm test 2>&1 | ruhaste

# fetch a paste into a variable
content=$(ruhaste get abc123)

# open a paste in the browser (macOS/Linux)
ruhaste ./file.txt | xargs open

s

About

CLI client for ruhaste - Hastebin-compatible pastebin

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors