@kutrion/cli 1.2.11 → 1.2.14
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 +8 -0
- package/dist/index.js +480 -241
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -41,6 +41,14 @@ code. A script pipes the password instead, with `--code` when the account has a
|
|
|
41
41
|
printf '%s\n' "$KT_PASSWORD" | kt login --email you@example.com --password-stdin
|
|
42
42
|
```
|
|
43
43
|
|
|
44
|
+
With no `--email` and no `--password-stdin`, `login` first asks the Kutrion app on this computer to sign the CLI in,
|
|
45
|
+
and falls back to the email and password when no app answers. Without a terminal it asks only an app this CLI has
|
|
46
|
+
already paired with, because the first pairing needs you to type `yes`. When a later command is refused because the
|
|
47
|
+
saved session is no longer accepted, the CLI asks an already-paired Kutrion app for a new sign-in and runs the command
|
|
48
|
+
once more, unless the command had already changed something or the app signed in to a different account; in that last
|
|
49
|
+
case the new sign-in is kept and the CLI asks you to run the command again. If no re-borrow is possible, the refusal says
|
|
50
|
+
to run `kt login`.
|
|
51
|
+
|
|
44
52
|
On a computer with an OS keychain, an interactive password or 2FA login on a desktop also registers
|
|
45
53
|
this CLI as a device of its own (it appears in Active devices as "Kutrion CLI on <computer>" and counts toward the plan's
|
|
46
54
|
device limit), and `kt logout` revokes it. If the Kutrion desktop app is installed there, the login
|