Save:
curl -s http://jenkins/job/JOBNAME/config.xml
restore
curl -X POST 'http://jenkins/createItem?name=JOBNAME' --header "Content-Type: application/xml" -d @-Get installed plugins:
curl 'http://jenkins/pluginManager/api/json?depth=1' | jq -M -r '.plugins[].shortName'