pasty-cli v0.2.0
pasty-cli
pasty-cli is a Typescript command line tool that interfaces with pasty-server to allow anonymous uploading, downloading, and sharing of pastes, collections of files. All pastes are encrypted client-side before transmission for storage. Submitted pastes are solely tied to a server-provided identifier and are typically hosted from a public S3 bucket. The corresponding AES key to each paste never leaves the client, rendering server knowledge of the paste's existence useless. No identifying information about the paste's origin is retained outside of your terminal.
Installation
From npm:
npm install -g pasty-clior using yarn:
yarn gobal add pasty-cliDevelopment installation
Clone this project and run:
yarn installTo build the CLI tool into dist/:
yarn buildUsage
To view builtin help run:
pasty --help
Usage: pasty [options] <file ...>
Options:
-V, --version output the version number
-i, --stdin Read from STDIN until EOF.
-h, --help output usage informationBasic usage of pasty involves passing a list of files:
$ pasty image.png main.js lib.js
https://p.brod.es/#/view/fileid/somekeyWhich will then return a URL, using a hardcoded URL as a base: https://p.brod.es/#/view/fileid/somekey
Alternatively, you can use stdin to create a paste:
$ dmesg | pasty -i
https://p.brod.es/#/view/fileid/somekeyChangelog
See Changelog