def METHOD_NAME(self):
    commonops.raise_if_inside_application_workspace()
    fileoperations.touch_config_folder()
    self.interactive = self.app.pargs.interactive or not self.app.pargs.platform_name
    self.region = self.app.pargs.region
    if self.interactive or not self.app.pargs.platform_name:
        self.region = commonops.get_region(self.app.pargs.region, self.interactive)
    else:
        self.region = commonops.get_region_from_inputs(self.app.pargs.region)
    aws.set_region(self.region)
    self.region = commonops.set_up_credentials(self.app.pargs.profile, self.region, self.interactive)
    self.platform_name, version = get_platform_name_and_version(self.app.pargs.platform_name)
    self.keyname = self.app.pargs.keyname
    if not self.keyname and self.interactive:
        self.keyname = get_keyname()
    initializeops.setup(
        'Custom Platform Builder',
        self.region,
        None,
        workspace_type=Constants.WorkSpaceTypes.PLATFORM,
        platform_name=self.platform_name,
        platform_version=version)
    fileoperations.write_keyname(self.keyname)
    if version is None:
        platformops.set_workspace_to_latest()