CLI Reference > Configuration Management Commands > si addprojectattr
si addprojectattr
adds attributes to a project
si addprojectattr [(--attr=key[=value]|--attribute=key[=value])] [(-P project|--project=project)] [(-S sandbox|--sandbox=sandbox)] [--[no]failOnAmbiguousProject] [--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]]
si addprojectattr adds attributes to a project, replacing any previous attribute of the same name specified with the project.
Attributes are key-value pairs of strings that are associated with the project. They are used for automated operations. For example, you could have an attribute indicating the target operating system type:
si addprojectattr --project=C:/phonespec/aurora.pj --attr OS=WIN32
Attribute keys cannot contain a hyphen (-) as the first character. The first character must either be an underscore (_) or an alpha character.
This command takes the universal options available to all si commands, as well as some general options. See the options reference page for descriptions.
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.
See the diagnostics reference page for possible exit status values.
Using si setprefs or si viewprefs, you are able to set or view the preference keys for this command.
See Also
Commands: si addmemberattr, si dropmemberattr, si dropprojectattr, si dropsandboxattr, si addsandboxattr
Miscellaneous: ACL, diagnostics, options, preferences