mirror of
https://github.com/logseq/logseq.git
synced 2026-02-01 22:47:36 +00:00
update doc
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user