2022-02-14 03:22:51 +01:00
|
|
|
---
|
|
|
|
title: env
|
|
|
|
layout: command
|
2022-03-04 13:10:09 +01:00
|
|
|
version: 0.59.1
|
2022-02-14 03:22:51 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
Display current environment variables
|
|
|
|
|
|
|
|
## Signature
|
|
|
|
|
|
|
|
```> env ```
|
|
|
|
|
2022-02-20 02:13:33 +01:00
|
|
|
## Examples
|
|
|
|
|
|
|
|
Display current path environment variable
|
|
|
|
```shell
|
|
|
|
> env | where name == PATH
|
|
|
|
```
|
|
|
|
|
|
|
|
Check whether the env variable `MY_ENV_ABC` exists
|
|
|
|
```shell
|
|
|
|
> env | any? name == MY_ENV_ABC
|
|
|
|
```
|
|
|
|
|
|
|
|
Another way to check whether the env variable `PATH` exists
|
|
|
|
```shell
|
|
|
|
> 'PATH' in (env).name
|
|
|
|
```
|