Managing properties of packages and package groups from command prompt
search cancel

Managing properties of packages and package groups from command prompt

book

Article ID: 21739

calendar_today

Updated On:

Products

CA Harvest Software Change Manager - OpenMake Meister CA Harvest Software Change Manager

Issue/Introduction

How can we rename a package or add and remove packages from package groups using the command line?

Environment

CA Harvest Software Change Manager all versions and platforms

Resolution

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 

Additional Information

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