---
schema_version: "1"
id: 349541cb83e7fa6bf0d5cfefd484e2ae8fed7ff613213357e822f3c50387722c
title: envVars
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.4/dw-system-functions-envvars.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.4/dw-system-functions-envvars
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 5bf9307fd5af71a89eb33a8ecb0365c0ea29e3b69b9af00370ead3bc3f92dd7e
description: MuleSoft Documentation Site
release: "2.4"
latest: false
---
# envVars

## [](#envvars1)envVars(): Dictionary<String>

ホストシステムで文字列の配列として定義されているすべての環境変数を返します。

### [](#例)例

次の例は、Mac コマンドコンソール (​`SHELL`​) のパスを返します。​`SHELL`​ は、標準 Mac 環境変数の 1 つです。すべての環境変数を返すには、​`dw::System::envVars()`​ を使用できます。

#### [](#ソース)ソース

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

#### [](#出力)出力

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