st2 key set <name> [value]
Set an existing key value pair
Arguments
Name | Description |
---|
name | Name |
value | Value |
Options
Name | Description |
---|
-h, --help | Show this help and exit |
-t, --token <TOKEN> | Access token for user authentication. Get ST2_AUTH_TOKEN from the environment variables by default |
--api-key <API_KEY> | Api Key for user authentication. Get ST2_API_KEY from the environment variables by default |
-j, --json | Print output in JSON format |
-y, --yaml | Print output in YAML format |
-e, --enrypt | Encrypt values before saving |
--enrypted | Value provided is already encrypted with the instance crypto key and should be stored as-is |
-l, --ttl <TTL> | The life span of the token in seconds. Max TTL configured by the admin supersedes this |
-s, --scope | Scope item is under. Example: 'user' |
-u, --user <USER> | User under which to run the action (admins only) |