Skip to content

Commit f1f11da

Browse files
committed
update for comments
1 parent 9097efc commit f1f11da

3 files changed

Lines changed: 13 additions & 4 deletions

File tree

skills/metamask-agent-wallet/references/auth.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,16 @@ mm config set <env|verbose|format> <value>
179179
| `verbose` | `true` or `false` |
180180
| `format` | `json`, `text`, `yaml`, `toml`, or `toon` |
181181

182+
### Overrides
183+
184+
Persisted values can be overridden per invocation without changing `~/.metamask/config.json`:
185+
186+
| Key | Override |
187+
| --- | --- |
188+
| `env` | `MM_ENV` environment variable |
189+
| `verbose` | `--verbose` / `-v` flag |
190+
| `format` | `--format`, `--json`, `--toon`, etc. |
191+
182192
### Example
183193

184194
```bash
@@ -190,8 +200,7 @@ mm config set format toon
190200

191201
### Note
192202

193-
- Set the target environment **before** signing in. To switch environments after login, run `mm logout` or `mm reset` first, then `mm config set env`.
194-
- `MM_ENV=prod|dev|uat` overrides the persisted environment for a single invocation (useful in CI).
203+
- Switch environments at any time with `mm config set env <prod|dev|uat>`.
195204
- Non-prod sessions are stored in env-scoped files under `~/.metamask/` (e.g. `session.dev.json`, `session.uat.json`); prod uses `session.json`.
196205

197206
## `reset` Command

skills/metamask-agent-wallet/workflows/onboarding.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ mm config set env dev
3434

3535
For a one-off override without persisting, use `MM_ENV=dev mm login` (or `uat`).
3636

37-
To switch environments after a prior login, run `mm logout` or `mm reset` first, then `mm config set env`.
37+
To switch environments, run `mm config set env <prod|dev|uat>`.
3838

3939
## Login Flow
4040

skills/metamask-agent-workflows/workflows/onboarding.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ mm config set env dev
3434

3535
For a one-off override without persisting, use `MM_ENV=dev mm login` (or `uat`).
3636

37-
To switch environments after a prior login, run `mm logout` or `mm reset` first, then `mm config set env`.
37+
To switch environments, run `mm config set env <prod|dev|uat>`.
3838

3939
## Login Flow
4040

0 commit comments

Comments
 (0)