Create pastes from the commandline

Examples

Create

curl -d title=sometitle -d text='this is my text' http://pasteat.me/api/create

Create with the text 'this is my text'

Create paste from local file

curl -d title=exampletitle --data-urlencode [email protected]/etc/somefile http://pasteat.me/api/create

Create a conf paste with the title 'exampletitle' and the contents of '/etc/somefile'

Create paste from php file

curl -d lang=php --data-urlencode [email protected] http://pasteat.me/api/create

Create with PHP syntax highlighting

Create paste via pipe

echo foo | curl --data-urlencode [email protected] http://pasteat.me/api/create

Create based on standard output of a command

Get paste

curl http://pasteat.me/view/raw/[pasteid]

Display paste