devlanes env
devlanes env [OPTIONS] <COMMAND>devlanes env show
Section titled “devlanes env show”Print the environment of the lane or of one unit as KEY=VALUE lines; agent output hides secret-looking values.
devlanes env show [OPTIONS] [UNIT][UNIT]: Unit whose environment to print ([lane:]unit, such as api or 2:api) [default: the lane’s variables].--explain: Show where each variable comes from; secret-looking values are hidden. With a unit, also prints the unit’s launch notes.
devlanes env export
Section titled “devlanes env export”Print export KEY=VALUE lines for eval in a shell.
devlanes env export [OPTIONS] [UNIT][UNIT]: Unit whose environment to export ([lane:]unit) [default: the lane’s variables].--shell <SHELL>: Shell syntax of the printed lines.- Values:
posix(export NAME='value', for sh, bash, zsh and Git Bash),pwsh($env:NAME = 'value', for Windows PowerShell 5.1 and PowerShell 7; the lines are ASCII and other text is decoded from Base64). - Default:
posix.
- Values:
Examples: eval "$(devlanes env export api)" devlanes env export api --shell pwsh | Out-String | Invoke-Expression
Windows PowerShell 5.1 and PowerShell before 7.5 remove a variable that isassigned an empty value, so variables with empty values end up unset there.devlanes env shell
Section titled “devlanes env shell”Open a subshell with the lane’s or one unit’s environment.
devlanes env shell [OPTIONS] [UNIT][UNIT]: Unit whose environment to use ([lane:]unit) [default: the lane’s variables].
Every command also takes the global options.