Link Search Menu Expand Document

env

The env field adds environment variables to the program’s environment. Environment variables are defined as KEY=VALUE key-value pairs.

Summary

FIELD       env
PATH        program[N].env
PARENT      program
TYPE        []String
DEFAULT     ""

Example

[[program]]
  binary = "/usr/bin/path"
  args = "-jar myapp.jar"
  env = ["HOME=/", "USER=root"]
  stdout = "/dev/vtty"
  stderr = "/dev/vtty"
  bootstrap = ["SLEEP 3000"]
  cwd = "/"

CLI Flag

--program[0].env="HOME=/" --program.0.env="USER=root"

Copyright © 2020 Vorteil.io. Support website for Vorteil.io