@monoedge/jdu-cli 0.3.0 → 0.5.0
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 +2 -2
- package/dist/cli.js +1123 -336
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
8
|
npm i -g @monoedge/jdu-cli
|
|
9
|
-
jdu
|
|
9
|
+
jdu login --server <url> # 指定简牍站点(本机自部署用 --local);站点支持时打开浏览器点一次授权
|
|
10
10
|
jdu push notes/hello.md --visibility public
|
|
11
11
|
jdu official add <docId> # 管理员:上架到官方知识库
|
|
12
12
|
```
|
|
@@ -16,7 +16,7 @@ jdu official add <docId> # 管理员:上架到官方知识库
|
|
|
16
16
|
登录方式听 server 的 `/healthz`:password 站点注册过 passkey 就打开浏览器授权签 token;没有浏览器的机器(CI、SSH 远端)带 `--token`:
|
|
17
17
|
|
|
18
18
|
```bash
|
|
19
|
-
jdu
|
|
19
|
+
jdu login --server https://docs.example.com --token <token>
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
签出去的 token 用 `jdu token list` / `jdu token rm <id>` 管理。
|