A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search
feature(cli): Add ability to get all bookmark IDs of a list. Fixes #442 (#446)
kamtschatka4bda7a923025
diff --git a/apps/cli/src/commands/lists.ts b/apps/cli/src/commands/lists.tsindex 855624d6..4b157cdf 100644--- a/apps/cli/src/commands/lists.ts+++ b/apps/cli/src/commands/lists.ts@@ -82,6 +82,24 @@ export async function addToList(listId: string, bookmarkId: string) {);}+listsCmd+ .command("get")+ .description("gets all the ids of the bookmarks assigned to the list")+ .requiredOption("--list <id>", "the id of the list")+ .action(async (opts) => {+ const api = getAPIClient();+ try {+ const results = await api.lists.get.query({ listId: opts.list });++ printObject(results.bookmarks);+ } catch (error) {+ printErrorMessageWithReason(+ "Failed to get the ids of the bookmarks in the list",+ error as object,+ );+ }+ });+listsCmd.command("add-bookmark").description("add a bookmark to list")