# `npx @sanity/cli functions env list`

List the environment-variable keys configured on one deployed Function. Values are not returned.

Run from the Blueprint directory or a subdirectory; the manifest is required even though the command only touches remote state.

## Run

Use the locally configured Stack:

```sh
npx @sanity/cli functions env list process-order --json
```

Query another Stack:

```sh
npx @sanity/cli functions env list process-order --stack NAME_OR_ID --json
```

The JSON result contains the Function `name` and an `envvars` array of keys. Match the Function name and Stack before using the result to add, replace, or remove a variable.
