Passing Arguments using environment variables

Bridge CLI Guide

Version
latest

Command-line arguments can also be specified using environment variables

To configure a command-line argument as an environment variable:

  1. Add the prefix BRIDGE_.

  2. Convert the property name to uppercase.

  3. Replace periods (.) with underscores (_).

The equivalent environment variable for polaris.accesstoken is shown in the table below for Linux, macOS, Windows, and PowerShell.

Platform Example
Linux
export BRIDGE_POLARIS_ACCESSTOKEN=MyAccessToken
macOS
export BRIDGE_POLARIS_ACCESSTOKEN=MyAccessToken
Windows
set BRIDGE_POLARIS_ACCESSTOKEN=MyAccessToken
PowerShell
$env:BRIDGE_POLARIS_ACCESSTOKEN="MyAccessToken"