@kutrion/cli 1.2.0 → 1.2.3
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 +4 -2
- package/dist/index.js +12601 -138
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -24,7 +24,8 @@ kt --base https://kutrion.com login --email you@example.com
|
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
`login` prompts for the password (and a 2FA code when the account has one), so neither lands in shell
|
|
27
|
-
history.
|
|
27
|
+
history. When the account signs in with an emailed code, a blank entry or `r` at the prompt sends a new
|
|
28
|
+
code. A script pipes the password instead, with `--code` when the account has a second factor:
|
|
28
29
|
|
|
29
30
|
```sh
|
|
30
31
|
printf '%s\n' "$KT_PASSWORD" | kt login --email you@example.com --password-stdin
|
|
@@ -65,7 +66,8 @@ is re-sent without its body, so `kt` stops and prints the address the server poi
|
|
|
65
66
|
`--base <url>` (or `KT_API_BASE`) points at a server; the token is stored in the OS keychain. There
|
|
66
67
|
is no default: unconfigured, `kt` exits non-zero rather than guessing an address to send credentials
|
|
67
68
|
to. `login` also refuses a plaintext `http://` server unless it is loopback. On a machine with no
|
|
68
|
-
keychain, `KT_TOKEN_STORE=file` keeps the token in `~/.config/kutrion/token` (mode 0600
|
|
69
|
+
keychain, `KT_TOKEN_STORE=file` keeps the token in `~/.config/kutrion/token` (mode 0600; on Windows the directory and file are
|
|
70
|
+
restricted to your account with `icacls`, and `kt` refuses to write the token if that fails).
|
|
69
71
|
|
|
70
72
|
Precedence is `--base`, then `KT_API_BASE`, then the saved server, and only `login` writes it:
|
|
71
73
|
`--base` on any other command is a one-off that reads a different server without changing the saved
|