Skip to content

project update env

Mohamed Hassan edited this page Aug 28, 2024 · 3 revisions

env: Update project environment variables

Usage:

Appvey project update env [...] [options]

Arguments:

<env> environment var in the form name:value. If it's encrypted, it's in the form name:value:true

Options:

  • -s, --slug Project slug [required]

  • -j, --json File name that contain environment json string. Only Env arguments or Json option is allowed

  • Common options for all commands

Example

# Assume auto login

# using json file
Appvey project update env -s my_appvey --json path/to/env.json

# using sequence of key/value pairs
Appvey project update env -s my_appvey var1:value1  var2:value2:true  var3:value3

Sample of env.json file

[
   {
      "name":"api_key",
      "value":{
         "isEncrypted":true,
         "value":"very-secret-key-encrypted"
      }
   },
   {
      "name":"var1",
      "value":{
         "isEncrypted":false,
         "value":"new-value"
      }
   }
]

Note:

The different ways to enter token/account, read How to login

Clone this wiki locally