Thanks @samcoe for the initial review! You are right that this call needs to happen earlier.
@divyaramanathan You will want to invoke the new API logic just before TemplateSurvey(), since that is where the user will be presented with a list of templates to choose between. Also, since the new API approach replaces looking up templates from the filesystem, you can remove the old filesystem lookups from this file.
Originally posted by @mislav in cli/cli#2539 (comment)