enhance: export command can save to file option

Also update export-edn command to have same default behavior as
export command. Printing to stdout was ok for dev but is surprising and
possibly overwhelming for most graphs
This commit is contained in:
Gabriel Horner
2025-08-25 09:31:53 -04:00
parent 13d7709b34
commit ffaccbb33e
8 changed files with 45 additions and 28 deletions

6
deps/cli/README.md vendored
View File

@@ -110,7 +110,11 @@ $ logseq query '(task DOING)' -a my-token
:uuid "68795144-e5f6-48e8-849d-79cd6473b952"}
...
# Export your DB graph as EDN
# Export DB graph as markdown
$ logseq export yep
Exported 41 pages to yep_markdown_1756128259.zip
# Export DB graph as EDN
$ logseq export-edn woot -f woot.edn
Exported 16 properties, 16 classes and 36 pages
```