CLI Reference > Configuration Management Commands > si addmemberattr
 
si addmemberattr
adds attributes to a member
Synopsis
si addmemberattr [(--attr=key[=value]|--attribute=key[=value])] [(-R|--[no|confirm]recurse)] [--filter=filteroptions] [(-P project|--project=project)] [--[no]failOnAmbiguousProject] [(-S sandbox|--sandbox=sandbox)] [--devpath=path] [--hostname=server] [--port=number] [--password=password] [--user=name] [(-?|--usage)] [(-F file|--selectionFile=file)] [(-N|--no)] [(-Y|--yes)] [--[no]batch] [--cwd=directory] [--forceConfirm=[yes|no]] [(-g|--gui)] [--quiet] [--settingsUI=[gui|default]] [--status=[none|gui|default]] member...
Description
si addmemberattr adds attributes to a member, replacing any previous attribute of that same name specified with the member. If no members are specified, the command applies to all members of the project.
Attributes are key-value pairs of strings that are associated with a member. They are used for automated operations. For example, you could have an attribute indicating the target operating system type:
si addmemberattr --attr OS=WIN32 activebutton.c
and then you could perform other operations, such as si resync, on just those files through the --filter universal option:
si resync --filter=attribute:OS=WIN32
* 
Attribute keys cannot contain a hyphen (-) as the first character. The first character must either be a underscore (_) or an alpha character.
Options
This command takes the universal options available to all si commands, as well as some general options. See the options reference page for descriptions.
--attr=key[=value]
--attribute=key[=value]
sets the attribute key and, optionally, the value. Note: you cannot have commas (,) in the key or value, nor an underscore (_) at the beginning of an attribute.
member...
identifies a specific member; use spaces to specify more than one member.
Diagnostics
See the diagnostics reference page for possible exit status values.
Preferences
Using si setprefs or si viewprefs, you are able to set or view the preference keys for this command.
See Also
Commands: si addprojectattr, si dropmemberattr, si dropprojectattr
Miscellaneous: ACL, diagnostics, options, preferences