update doc

This commit is contained in:
rcmerci
2026-01-29 21:48:41 +08:00
parent c4733f7cfb
commit ac591812b2

View File

@@ -5,13 +5,9 @@ The Logseq CLI is a Node.js program compiled from ClojureScript that connects to
## Build the CLI
```bash
LOGSEQ_BUILD_TIME=$(date -u +"%Y-%m-%dT%H:%M:%SZ") \
LOGSEQ_REVISION=$(git rev-parse --short HEAD) \
clojure -M:cljs compile logseq-cli
clojure -M:cljs compile logseq-cli db-worker-node
```
If `LOGSEQ_BUILD_TIME` or `LOGSEQ_REVISION` are not provided, the CLI prints defaults in `--version` output.
## db-worker-node lifecycle
`logseq` manages `db-worker-node` automatically. You should not start the server manually. The server binds to localhost on a random port and records that port in the repo lock file.
@@ -22,7 +18,12 @@ If `LOGSEQ_BUILD_TIME` or `LOGSEQ_REVISION` are not provided, the CLI prints def
node ./dist/logseq.js graph list
```
If installed globally, run:
You can also use npm link to make ./dist/logseq.js globally available, run:
```
npm link
```
If installed(or linked) globally, run:
```bash
logseq graph list