Command Central 10.3 | Command Central Developer Reference | Using the Command Line Interface | Repository Commands | sagcc update repository assets flatfile
 
sagcc update repository assets flatfile
Update a flat file repository that contains user-created source assets.
Syntax
*Command Central syntax:
sagcc update repository assets flatfile name=repoName
[location=flat-file-repo-folder-or-zip-on-server|-i flat-file-repo-zip-on-client]
[credentials=credAlias] [registryRoot=URL] [registryNamespacesRoot=URL]
[description=description] [options]
*Not supported by Platform Manager.
Arguments and Options
Argument or Option
Description
name=repoName
Required. A unique name for the flat file repository that you are adding.
[location=flat-file-repo-folder-or-zip-on-server]
Optional. The path to the directory on the Command Central server that contains the flat file repository or the zip archive of the flat file.
[-i flat-file-repo-zip-on-client]
Optional. The path to the zip archive of the flat file repository on a client machine.
[credentials=credAlias]
Optional. The alias of the COMMON-CREDENTIALS configuration instance that has the details for accessing the GIT repository. If the instance already exists, you can retrieve the alias using sagcc list configuration instances. If the configuration instance does not exist, you must create it with the sagcc create configuration data command. See the Usage Notes for details about the GIT credentials input properties file that you must provide with the sagcc create configuration data command.
[registryRoot=URL]
Optional. A valid URL that points to the location of the registry that stores the metadata for the assets in the repository.
The registry is located inside the local directory that stores the flat file repository. For example, if the flat file repository is located in the C:\fileRepo directory and the registry directory is "MyRegistry", you must set this parameter as follows: registryRoot=/MyRegistry
[registryNamespacesRoot=URL]
Optional. A valid URL that points to the location of the directory that stores the registry namespaces.
The namespace directory is located inside the registry directory. For example, if the registry directory is C:\fileRepo, you must set this parameter as follows: registryNamespacesRoot=/MyRegistryNs
[description=description]
Optional. A description of the asset repository.
[options]
Optional. The command allows all options supported by the Command Line Interface. For a description of the options, see Common Options.
Usage Notes
*If you do not specify the location of the existing repository, Command Central uses the location of the repository from the cache.
*When creating or updating an asset repository, you can check the progress of the operation and troubleshoot issues using Jobmanager Jobs Commands or in the Command Central web user interface, go to Stacks > Jobs.
Example When Executing on Command Central
To update a flat file asset repository with name "repo1" from a zip archive, located on the client, where "MyRegistry" is the name of the registry directory, and "MyRegistryNs" is the name of the directory for the registry namespaces:
sagcc update repository assets flatfile name=repo1
-i C:\CommandCentral\AssetRepo.zip registryRoot="/MyRegistry"
registryNamespacesRoot="/MyRegistryNs" description="Local asset build repository."