Command Central 10.15 | Using the Command Line Interface | Template Commands | sagcc exec templates composite import repository
 
sagcc exec templates composite import repository
Imports all or selected template assets from the default template asset repository into the local Command Central installation.
For example, after you connect to the Default Templates on GitHub repository, you can use the command to update/import the latest changes from the template asset repository on GitHub into the default template assets repository on Command Central.
Syntax
*Command Central syntax:
sagcc exec templates composite import assetsRepoName [templateNames=TemplateName1,TemplateName2,...]
[applyLayerDefinitions={true|false}] [overwrite={true|false}] [options]
*Not supported on Platform Manager
Arguments and Options
Argument or Option
Description
assetsRepoName
The name with which you registered the default template asset repository in Command Central.
[templateNames=TemplateName1,TemplateName2,...]
Optional. A list of the aliases of the templates to import. If you do not specify this argument, all templates in the template assets repository on GitHub will be imported.
[applyLayerDefinitions={true|false}]
Optional. Specifies whether to create layer type definitions for the imported templates. Command Central creates layer type definitions only for the default templates used in one of the CCE-LAYER-TYPES-* definitions in the sag-cc-layer-defs template. Valid values:
*true - (default) creates layer type definitions for the imported templates
*false - does not create layer type definitions
[overwrite={true|false}]
Required only when updating a template assets repository of type "Default Templates on GitHub". If a template is updated on GitHub, it will be re-imported in the template assets repository (registered in Command Central) with the same template alias. The overwrite argument controls whether the command will overwrite the template of the same alias in the registered repository. Valid values:
*true - overwrite the templates in the registered repository
*false - (default) do not overwrite the templates
[options]
Optional. The command allows all options supported by the Command Line Interface. For a description of the options, see Common Options.
Examples When Executing on Command Central
To update the templates asset repository with name "DefaultTemplatesRepo" with the latest changes in the default templates in the template assets repository on GitHub and overwrite the templates of the same alias in the "DefaultTemplatesRepo":
sagcc exec templates composite import DefaultTemplatesRepo overwrite=true