# Configuration and updates

Inspect the selected Foxora environment before overriding endpoints, and let the CLI identify the correct update path for its installation method.

```bash
foxora env
foxora --version
foxora update
```

Switch the saved machine environment only when intended:

```bash
foxora env use development
foxora env use production
```

`FOXORA_ENV` overrides the saved choice. `FOXORA_ENGINE_URL` and `FOXORA_GATEWAY_URL` override service endpoints, while `FOXORA_RESOURCE_ID` selects the memory resource. Treat all overrides as development or managed-deployment controls; a wrong URL can make healthy authentication look broken.

After `foxora update`, follow any Homebrew, Scoop, or npm command it prints, then rerun `foxora --version` and `foxora doctor`. Restart Studio after changing the saved environment so both clients agree.

**Expected result:** `foxora env` reports the intended endpoints and data path, and diagnostics pass after the update.
