Skip to content

Commit ca499cc

Browse files
committed
docs: update README setup section for multi-workspace auth
1 parent 7c8747b commit ca499cc

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

README.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,23 @@ cargo install --path .
3838
Get your API key from **Linear Settings > API > Personal API keys**, then:
3939

4040
```bash
41-
lin config set-token
41+
lin auth login # interactive — saves as a named workspace
4242
```
4343

44-
Or set it via environment variable:
44+
Or set it directly:
4545

4646
```bash
47-
export LINEAR_API_KEY="lin_api_..."
47+
export LINEAR_API_KEY="lin_api_..." # environment variable (simplest)
48+
lin config set-token # save to config file
49+
```
50+
51+
**Multiple workspaces:**
52+
53+
```bash
54+
lin auth login # add each workspace by name
55+
lin auth list # see configured workspaces
56+
lin auth default myco # switch default
57+
lin --workspace other-org issues list # one-off override
4858
```
4959

5060
## Usage

0 commit comments

Comments
 (0)