upload nifi template using curl command
If you looking to upload template using NIFI REST API, below command curl command upload the template as multipart form post
curl -XPOST -H "Authorization: Bearer {{ token }}" https://localhost:9091/nifi-api/process-groups/10c263d0-0160-1000-0000-00006a157654/templates/upload -k -v -F template=@NifiTemplate.xml

