Update resource to detect file parameters.  Implement template upsert CLI