Skip to content

Commit 1363e78

Browse files
committed
changeset
1 parent c3b9329 commit 1363e78

2 files changed

Lines changed: 29 additions & 15 deletions

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
"wrangler": minor
3+
---
4+
5+
Add authentication profiles to Wrangler
6+
7+
Profiles store separate OAuth credentials so you can switch between accounts without reauthenticating.
8+
9+
Create a profile and log in:
10+
11+
`wrangler profiles create "work"`
12+
13+
This will direct you through the usual OAuth flow, where you can choose to limit which accounts this OAuth token will have access to.
14+
15+
To switch between profiles, run:
16+
17+
`wrangler profiles set "personal"`
18+
19+
Bind a profile to a directory so it activates automatically:
20+
21+
`wrangler profiles set "work" --dir="/path/to/project"`
22+
23+
You can also override the active profile with the `WRANGLER_PROFILE` environment variable.
24+
25+
These commands are also provided:
26+
27+
- `wrangler profiles list`
28+
- `wrangler profiles delete` (revokes the token)
29+
- `wrangler profiles unset` (unbinds a specific directory, or stop using profiles)

.changeset/multi-account-profiles.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)