---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../modules.md) / [config](../index.md) / resolveEnvFilePath

# Function: resolveEnvFilePath()

> **resolveEnvFilePath**(`options`): `string` \| `undefined`

Defined in: [packages/b2c-tooling-sdk/src/config/project-environment.ts:51](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/bceb8da43dd8bc63d57932bbd905d36a1b40c949/packages/b2c-tooling-sdk/src/config/project-environment.ts#L51)

Resolves which env file applies.

An explicit file replaces the default `.env` (it is not layered on top of it).

## Parameters

### options

[`EnvFileSelectionOptions`](../interfaces/EnvFileSelectionOptions.md) = `{}`

## Returns

`string` \| `undefined`

Absolute path of the env file, or undefined when none applies

## Throws

Error if an explicitly selected file does not exist
