---
url: /api/reference/wxt/interfaces/ConfigEnv.md
---

[API](../../packages.md) / [wxt](../index.md) / ConfigEnv

# Interface: ConfigEnv

Source: [packages/wxt/src/types.ts:1175](https://github.com/wxt-dev/wxt/blob/1df3d8c5ec00b7543f6aec7fa00ebc242db1ca30/packages/wxt/src/types.ts#L1175)

## Contents

* [Properties](#properties)
  * [browser](#browser)
  * [command](#command)
  * [manifestVersion](#manifestversion)
  * [mode](#mode)

## Properties

### browser

> **browser**: `string`

Source: [packages/wxt/src/types.ts:1190](https://github.com/wxt-dev/wxt/blob/1df3d8c5ec00b7543f6aec7fa00ebc242db1ca30/packages/wxt/src/types.ts#L1190)

Browser passed in from the CLI via the `-b` or `--browser` flag. Defaults
to `"chrome"` when not passed.

***

### command

> **command**: [`WxtCommand`](../type-aliases/WxtCommand.md)

Source: [packages/wxt/src/types.ts:1185](https://github.com/wxt-dev/wxt/blob/1df3d8c5ec00b7543f6aec7fa00ebc242db1ca30/packages/wxt/src/types.ts#L1185)

The command used to run WXT. `"serve"` during development and `"build"` for
any other command.

***

### manifestVersion

> **manifestVersion**: `2` | `3`

Source: [packages/wxt/src/types.ts:1197](https://github.com/wxt-dev/wxt/blob/1df3d8c5ec00b7543f6aec7fa00ebc242db1ca30/packages/wxt/src/types.ts#L1197)

Manifest version passed in from the CLI via the `--mv2` or `--mv3` flags.
When not passed, it depends on the target browser. See [the
guide](https://wxt.dev/guide/essentials/target-different-browsers.html#target-a-manifest-version)
for more details.

***

### mode

> **mode**: `string`

Source: [packages/wxt/src/types.ts:1180](https://github.com/wxt-dev/wxt/blob/1df3d8c5ec00b7543f6aec7fa00ebc242db1ca30/packages/wxt/src/types.ts#L1180)

The build mode passed into the CLI. By default, `wxt` uses `"development"`
and `wxt build|zip` uses `"production"`.

***

Generated using [typedoc-plugin-markdown](https://www.npmjs.com/package/typedoc-plugin-markdown) and [TypeDoc](https://typedoc.org/)
