Adding an environment variable

The dsadmin command can be used for creating a new environment variable in a particular project.

The environment variable is added to the "User Defined" category.


dsadmin -envadd EnvVarName -type STRING | ENCRYPTED 
-prompt "PromptText" [-value "Value"] ProjectName

EnvVarName is the name of the environment variable being created.

-type specified the type of the environment variable and should be set to either STRING or ENCRYPTED.

-prompt PromptText is the prompt to be associated with this environment value The PromptText must be quoted as it can contain spaces.

-value Value is the value for the new environment variable. Value must be quoted. If this is not given, the value for the environment variable will need to be set using the dsadmin -envset command.

ProjectName is the project to which the environment variable is being added.