aptible config:set

This command is used to set Configuration variables for an app.

Examples

Setting variables

aptible config:set --app "$APP_HANDLE" \
        VARIABLE_1=VALUE_1 \
        VARIABLE_2=VALUE_2

Setting a variable from a file

Tip

Setting variables from a file is a convenient way to set complex variables that contain spaces, newlines, or other special characters.

# This will read file.txt and set it as VARIABLE

aptible config:set --app "$APP_HANDLE" \
        "VARIABLE=$(cat file.txt)"

Deleting variables

To delete a variable, set it to an empty value:

aptible config:set --app "$APP_HANDLE" \
        VARIABLE=

Synopsis

Usage:
  aptible config:set

Options:
      [--app=APP]
      [--environment=ENVIRONMENT]
  -r, [--remote=REMOTE]

Alias for config:add