java -jar jenkins-cli.jar -s http://server get-job myjob > myjob.xml
java -jar jenkins-cli.jar -s http://server create-job newmyjob < myjob.xml
create-job:
This creates a new job by reading stdin as a configuration XML file
get-job:
This dumps the job definition XML to stdout