Skip to content

Commit 7f794e1

Browse files
committed
Add org override to README
1 parent fdd11fd commit 7f794e1

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,33 @@ webex logout # Remove stored tokens
9292
webex auth status # Show current user and token status
9393
webex auth list # List all authenticated users
9494
webex auth switch <email> # Switch default user
95+
webex auth set-org <org-id> # Set a persistent org override
96+
webex auth clear-org # Clear the org override
9597
```
9698

9799
Token resolution order: `--token` flag > `$WEBEX_TOKEN` env var > OS keyring.
98100

101+
### Organization Override
102+
103+
Partner admins managing customer orgs can set a persistent default org so they don't need `--organization` on every command:
104+
105+
```bash
106+
# Set a default org (accepts UUID or base64 ID, validates via API)
107+
webex auth set-org <org-id>
108+
109+
# All subsequent commands use the override org
110+
webex calling devices list
111+
webex cc site list
112+
113+
# The --organization flag still takes priority for one-off commands
114+
webex calling people list --organization <other-org-id>
115+
116+
# Clear the override to revert to your home org
117+
webex auth clear-org
118+
```
119+
120+
Org resolution order: `--organization` flag > `auth set-org` override > login user's home org.
121+
99122
## Output Formats
100123

101124
Control output with `--output`:

0 commit comments

Comments
 (0)