set

Use this command to set a category or attribute on a package, or to add a relationship to a package.

Purpose

The set command can be used to add an attribute or a category to an asset. You can also use the set command to add a relationship to an asset.

Parameters

ram set package_ID package_version options_with_values
Argument Description Required
package_ID The ID of the package to update. Yes
package_version The version of the package to update. If you do not supply a package version, the most recent version is updated. No
-q query Use the -q parameter to provide a query string to use when searching for the package to update. No
-c "category" Specify a category for the package. You can specify multiple categories after the -c parameter. No
-a "attribute_name=value" Specify an attribute for the package. You can specify multiple attribute/value pairs after the -a parameter. No
-r "relationship_type:related_asset_id:related_asset_version:query_string" Specify a relationship to create for the package. The relationship_type parameter is required. At least one of the other parameters must be specified. Empty values can be specified for the optional parameters. If you do not specify a version or query string, then a relationship is created to the latest version of the specified asset. No
-config configuration_file The complete path to the configuration file to use for communication with the library server. If you do not specify a configuration file on the command line, the default configuration file in the .ram subdirectory in the home directory of the current user is used. No, as long as the default configuration file exists in the .ram subdirectory of the home directory of the current user.
ram set newpackage 3.0 -c "Continuous Delivery/Environment/Development"
ram set newerpackage 4.0 -a "attribute1=v1" "attribute2=v2" -c "category1" "category2"
ram set newestpackage 5.0 -a "attribute1=v5" -c "DevOps/Environment/Development" -r "Documentation:NewestHelp"
ram set oldpackage 1.0 -r "Documentation:MyDoc::state:(submitted)"

Feedback