Registering preproc_bold to dhcp-volumetric-atlas-v2018.8.20/mean/ga_40/template_t2.nii.gz

I am sure this is a simple problem, but for some reason I am having issues.

I would like to register all of the preproc_bold.nii.gz files to the 40wk template space.

I downloaded the template from: BioMedIA/dhcp-brain-atlases: Brain atlases constructed from data provided by the Developing Human Connectome Project (dHCP). - G-Node GIN

This is what I have tried

applywarp -i sub-{$subjectid}_ses-{$session}_task-rest_desc-preproc_bold.nii.gz -r dhcp-volumetric-atlas-v2018.8.20/mean/ga_40/template_t2.nii.gz -w ../xfm/sub-{$subjectid}_ses-{$session}_from-bold_to-extdhcp40wk_mode-image.nii.gz -o sub-{$subjectid}_ses-{$session}_task-rest_desc-preproc_space-template.nii.gz

What am I missing? Is there an affine registration I should be performing first?

Any help would be greatly appreciated, thank you so much.