Repository navigation
Feat: Add a CLI - #12000
Feat: Add a CLI#12000
Conversation
cfae41f to
5470828
Compare
9ccab71 to
456f853
Compare
e393fee to
499c4c8
Compare
There was a problem hiding this comment.
Exciting to have CLI! 🚢 🚀
I tested all the commands for both docs and lambda graph, and they work exactly as written in README, great work!
It'll be nice to support those cases:
- query by block uuid instead of
[:block/uuid #uuid "block-uuid"] - query by block title or lowercased name
- add an option for "query" to return all properties instead of id
- able to search without the api server by using
(d/datoms db :avet :block/title) - able to dsl query without the api server, we need to move
frontend.db.query-dslto deps/db first
Also move common db graph list to shared ns and move common prefix constants to common-config
Was used for removed e2e tests. Test rtc just in case
allows for user specified limit of results. Also enabled nbb-logseq tests for cli since first test was introduced
Also update cli install instructions
Lazy load namespaces as start time goes up with more required namespaces external to nbb-logseq or node. CLI now only loads ~6 namespaces instead of 55 namespaces at start and then lazy loads a command ns as needed
confirmed with npm pack that CLI works with files config
506ffed to
97dffcf
Compare
also fix minor bug silently failing show command for abnormal graphs
Also add user friendly error handling when api server isn't turned on
Can use uuid string as shorthand identifier. Can make properties readable with option. Also wire up local query to use default catch handler
Also add assertion to guard against previous load time issue
failing w/ confusing stacktraces. Also exit correctly when a nonexistent graph is given
|
@logseq-cldwalker Nice! |
|
Another idea is to add an |
to address #12000 (comment). Also bump version for initial release
Addressed these in cc1093a. For 2, I added it as an option e.g. Going to do an initial release of the CLI soon |
Good idea. Have questions so made this an issue - https://test.logseq.com/#/page/689ca670-d93f-4fe0-a262-029d95f8450f |
to address #12000 (comment). Also bump version for initial release
to address #12000 (comment). Also bump version for initial release
to address #12000 (comment). Also bump version for initial release
to address #12000 (comment). Also bump version for initial release
to address #12000 (comment). Also bump version for initial release

This PR adds a
logseqCLI for DB graphs which can be installed via npm/yarn. See https://github.com/logseq/logseq/blob/feat/add-cli/deps/cli/README.md for an overview of the CLI.To QA:
npm i -g @logseq/cli@alphaRemaining tasks: