1.0.0 • Published 4 years ago
@pixelfactory/privatebin-cli v1.0.0
privatebin-cli
Install
npm install -g @pixelfactory/privatebin
Usage
Send command
$ privatebin send --help
Usage: privatebin send [options] <message>
post a message to privatebin
Options:
-e, --expire <string> paste expire time [5min, 10min, 1hour, 1day, 1week, 1month, 1year, never] (default: "1week")
--burnafterreading burn after reading (default: false)
--opendiscussion open discussion (default: false)
--compression <string> use compression [zlib, none] (default: "zlib")
-u, --url <string> privateBin host (default: "https://privatebin.net")
-o, --output [type] output format [text, json, yaml] (default: "text")
-h, --help display help for command
Example
$ privatebin send -e 5min -o json "Hello World"
{
"pasteId": "ccd05227e7bab99c",
"pasteURL": "https://privatebin.net/?ccd05227e7bab99c#GWk29DqQx6NAfMYHgMeDeR76QSyL82fHHg5yGu3U8fft",
"deleteURL": "https://privatebin.net/?pasteid=ccd05227e7bab99c&deletetoken=62a14a8483452485902b2e86e56f07269dd484f305d7d210d2375397deb79c1b"
}
Or use pipe
$ echo 'Hello World' | privatebin send -e 5min
pasteId: 649aa8c062d4ed4d
pasteURL: https://privatebin.net/?649aa8c062d4ed4d#Gt3NoxrGF8Tck5j9bBrsuFjbEaCyEBfBiGi1g8qCF2kv
deleteURL: https://privatebin.net/?pasteid=649aa8c062d4ed4d&deletetoken=b2dae42a762cf0b5e1dbf1fd5113356ba370218091668950c7f6a2d181a07ac6
Get command
$ privatebin get --help
Usage: privatebin get [options] <pasteUrl>
get a message from privatebin
Options:
-h, --help display help for command
Example
$ privatebin get "https://privatebin.net/?ccd05227e7bab99c#GWk29DqQx6NAfMYHgMeDeR76QSyL82fHHg5yGu3U8fft"
Hello World
1.0.0
4 years ago