diff --git a/docs/cli/logseq-cli.md b/docs/cli/logseq-cli.md index 32c5cc613e..311d3cea1f 100644 --- a/docs/cli/logseq-cli.md +++ b/docs/cli/logseq-cli.md @@ -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