---
schema_version: "1"
id: 858f8646e9b33a00faa299b82308466e8df0921d28176fb901f3f70919ca7b30
title: envVars
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.3/dw-system-functions-envvars.md
canonical_url: https://docs.mulesoft.com/dataweave/2.3/dw-system-functions-envvars
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 824071c8030aa01929b48208b3e59391d22e43a3ea477e160aa058cd723a4a17
description: MuleSoft Documentation Site
release: "2.3"
latest: false
---
---
product: DataWeave
version: 2.3
---

# envVars

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

## envVars(): Dictionary<String>

Returns all of the environment variables defined in the host system.

### Example

This example returns a Mac command console (`SHELL`) path. `SHELL` is one of the standard Mac
environment variables. To return all the environment variables, you can use `dw::System::envVars()`.

#### Source

```DataWeave
%dw 2.0
import dw::System
output application/json
---
{ "envVars" : dw::System::envVars().SHELL }
```

#### Output

```JSON
{ "envVars": "/bin/bash" }
```
