@topolo/cli 0.13.22 → 0.13.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -1
- package/dist/index.js +755 -202
- package/package.json +4 -4
- package/postinstall.mjs +6 -6
package/README.md
CHANGED
|
@@ -57,9 +57,25 @@ For interactive use:
|
|
|
57
57
|
topolo auth login # OAuth device flow — no client id needed; approve in the browser
|
|
58
58
|
topolo auth login --api-key topo_live_... # or store an API key directly (headless/service)
|
|
59
59
|
topolo auth status # shows which source is active
|
|
60
|
-
topolo auth logout #
|
|
60
|
+
topolo auth logout # removes every stored sign-in for the environment and revokes it
|
|
61
|
+
topolo auth lock # shows who holds the sign-in renewal lock and how to recover
|
|
61
62
|
```
|
|
62
63
|
|
|
64
|
+
A stored API key is what unpinned commands act as, even when OAuth contexts are
|
|
65
|
+
also stored; name a context with `--context` to use one. `auth logout` removes
|
|
66
|
+
the stored credential, every personal and organization context and any pending
|
|
67
|
+
re-authorization for the selected environment, then revokes each removed OAuth
|
|
68
|
+
sign-in at Topolo (API keys are only removed locally). A re-authorization is
|
|
69
|
+
accepted only from the user who signed the context in; another member of the
|
|
70
|
+
same organization approving in the browser changes nothing.
|
|
71
|
+
|
|
72
|
+
If every command fails with `state_conflict` after about 30 seconds, the lock
|
|
73
|
+
that serializes sign-in renewal is held or was left behind. `topolo auth lock`
|
|
74
|
+
shows its state and the next step; an empty lock left by an interrupted writer
|
|
75
|
+
is recovered with `topolo auth lock --reconcile <generation>`, which keeps the
|
|
76
|
+
old lock in a private quarantine as evidence. Credentials are not read or
|
|
77
|
+
changed.
|
|
78
|
+
|
|
63
79
|
`topolo auth login` uses a **built-in first-party OAuth client per environment**,
|
|
64
80
|
so any Topolo user can sign in without registering a client — what they can do
|
|
65
81
|
is decided by their permissions. `--client-id doac_...` (or
|