Skip to content

Uploadgram/paste-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pastegram-cli

A CLI tool to use Pastegram from the terminal

Installing

sudo pip install pastegram-cli # install globally

Examples

Uploading

pastegram-cli upload my-file.txt

or read from STDIN

# implicit upload
pastegram-cli < my-file.txt

or

cat my-file.txt | pastegram-cli

Fetching a paste

pastegram-cli fetch "https://paste.uploadgram.me/61d7737a9ae36g#AmX76Y3RDgh_xfHB2ktgVYcT76jjCXMmMs7xPYSbqoc"
# outputs to STDOUT

or write the output to a file

pastegram-cli fetch "https://paste.uploadgram.me/61d7737a9ae36g#AmX76Y3RDgh_xfHB2ktgVYcT76jjCXMmMs7xPYSbqoc" -o the-paste.txt

Deleting a paste

pastegram-cli delete TOKEN
# TOKEN is the 49 characters long string you get after uploading a paste

About

A CLI tool to use Pastegram from the terminal

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages