How can we rename a package or add and remove packages from package groups using the command line?
CA Harvest Software Change Manager all versions and platforms
Use the hup (Update Package) command to rename packages and add or remove packages from existing package groups.
To rename a package, at a minimum, you must supply the following parameters:
hup -b [Broker Name] -en [Project Name] -p [Current Package Name] -prompt -npn [New Package Name]
To add the package to one or more existing package groups:
hup -b [Broker Name] -en [Project Name] -p [Package Name] -prompt -apg [comma separated list of package groups]
To remove the package from one or more existing package groups:
hup -b [Broker Name] -en [Project Name] -p [Package Name] -prompt -rpg [comma separated list of package groups]
For example, to rename "OldPackage" to "NewPackage" in the project "MyProject"
hup -b MyBroker -en MyProject -p OldPackage -prompt -npn NewPackage
Note: For any parameters where the value contains a space or a special character, please enclose that value in double quotes. For example "My Project".
More details about the hup command can be found here: hup Command-Update Package