Create pastes from the commandline



curl -d title=sometitle -d text='this is my text'

Create with the text 'this is my text'

Create paste from local file

curl -d title=exampletitle --data-urlencode [email protected]/etc/somefile

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]

Create with PHP syntax highlighting

Create paste via pipe

echo foo | curl --data-urlencode [email protected]

Create based on standard output of a command

Get paste


Display paste