mirror of
https://github.com/logseq/logseq.git
synced 2026-04-26 23:25:05 +00:00
enhance(cli): Add validate command for local graph(s)
Improves :errors of invalid errors to be more user friendly. Also enable closed-value validation optionally as it is useful to have higher data quality for non RTC graphs
This commit is contained in:
3
deps/cli/README.md
vendored
3
deps/cli/README.md
vendored
@@ -12,7 +12,7 @@ This section assumes you have installed the CLI from npm or via the [dev
|
||||
setup](#setup). If you haven't, substitute `node cli.mjs` for `logseq` e.g.
|
||||
`node.cli.mjs -h`.
|
||||
|
||||
All commands work with both local graphs and the current in-app graph except for `append` (in-app graph only) and `export` (local graph only). For a command to work with an in-app graph, the [HTTP API Server](https://docs.logseq.com/#/page/local%20http%20server) must be turned on.
|
||||
All commands work with both local graphs and the current in-app graph except for `append` (in-app graph only), `validate` (local graph only) and `export` (local graph only). For a command to work with an in-app graph, the [HTTP API Server](https://docs.logseq.com/#/page/local%20http%20server) must be turned on.
|
||||
|
||||
Now let's use the CLI!
|
||||
|
||||
@@ -33,6 +33,7 @@ export-edn [options] Export DB graph as EDN
|
||||
import-edn [options] Import into DB graph with EDN
|
||||
append [options] Appends text to current page
|
||||
mcp-server [options] Run a MCP server
|
||||
validate [options] Validate DB graph
|
||||
help Print a command's help
|
||||
|
||||
$ logseq list
|
||||
|
||||
Reference in New Issue
Block a user