@andocorp/cli 0.5.15 → 0.5.17
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 +14 -8
- package/dist/cli.js +54 -39
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
public API through `@andocorp/sdk` and an Ando API key.
|
|
5
5
|
|
|
6
6
|
```sh
|
|
7
|
-
ando login #
|
|
7
|
+
ando login # sign in via browser (grants messages + realtime:read)
|
|
8
|
+
ando login --paste # or paste an existing API key at a hidden prompt
|
|
8
9
|
ando send '#deploys' "v41 is out"
|
|
9
10
|
pytest 2>&1 | ando send '#ci' --code # standard input, as a code block
|
|
10
11
|
ando send '#deploys' "rolled back" --thread <message-id>
|
|
@@ -80,14 +81,19 @@ says if anything is missing, or if Ubuntu is stopping the sandbox.
|
|
|
80
81
|
|
|
81
82
|
## Keys
|
|
82
83
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
84
|
+
Run `ando login` to sign in through your browser (SSH-friendly: press Enter to
|
|
85
|
+
open on a local desktop, or open the printed link and verify the 6-character
|
|
86
|
+
code on any device). Browser sign-in mints a scoped member API key
|
|
87
|
+
(`messages:read`, `messages:write`, `realtime:read`), checks workroom realtime
|
|
88
|
+
access upfront, and saves it owner-only (`0600`) to
|
|
89
|
+
`$XDG_CONFIG_HOME/ando/cli.json` (`~/.config/ando/cli.json` by default).
|
|
88
90
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
+
To use an existing key created in Ando's settings, run `ando login --paste`
|
|
92
|
+
(hidden prompt) or `ando login --key-stdin` (piped stdin).
|
|
93
|
+
|
|
94
|
+
`ANDO_API_KEY`, `ANDO_API_URL`, `ANDO_CONVEX_URL`, `ANDO_MCP_URL` and
|
|
95
|
+
`ANDO_WEB_URL` override the saved values. The key is never printed, including in
|
|
96
|
+
errors and `--json` output.
|
|
91
97
|
|
|
92
98
|
## Wiki disk sync
|
|
93
99
|
|