Environment Variables

Environment Variables

Accessing ENV vars from the client's workstation

Security

By default, ENV vars are denied access to Terminalwire servers. Only the client can grant access to ENV vars on the client’s workstation.

The only ENV var that’s allowed by default is TERMINALWIRE_HOME, which is required for session to work properly.

Reading variables

You can read an ENV var from the client’s workstation by using the env device. Here’s an example:

# Access the ENV hash
context.ENV["TERMINALWIRE_HOME"]
# Or use the env device
context.environmnent_variables.read("TERMINALWIRE_HOME")