npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

chromadb-cli

v0.1.2

Published

CLI for chromadb

Downloads

24

Readme

npm version

Basic CLI to interact with ChromaDB server ChromaDB

Developed using oclif. For contribution guidelines and development details, head over there.

Usage

$ npm install -g chromadb-cli
$ chromadb COMMAND
running command...
$ chromadb (--version)
chromadb-cli/0.1.2 darwin-arm64 node-v18.16.0
$ chromadb --help [COMMAND]
USAGE
  $ chromadb COMMAND
...

Initialization

Start by configuring the CLI.

$ chromadb configure

The CLI can use ENV vars as well, just set CHROME_SERVER_HOST and CHROME_SERVER_PORT.

Note: it does not support authentication as of now. PRs welcome :)

Commands

chromadb collections delete COLLECTION_NAME

delete a collection

USAGE
  $ chromadb collections delete COLLECTION_NAME

ARGUMENTS
  COLLECTION_NAME  name of the collection

DESCRIPTION
  delete a collection

EXAMPLES
  $ chromadb collections delete

See code: dist/commands/collections/delete.ts

chromadb collections get COLLECTION_NAME

get a collection

USAGE
  $ chromadb collections get COLLECTION_NAME

ARGUMENTS
  COLLECTION_NAME  name of the collection

DESCRIPTION
  get a collection

EXAMPLES
  $ chromadb collections get

See code: dist/commands/collections/get.ts

chromadb collections list

list collections in the chroma server

USAGE
  $ chromadb collections list

DESCRIPTION
  list collections in the chroma server

EXAMPLES
  $ chromadb collections list

See code: dist/commands/collections/list.ts

chromadb configure

set configuration for the chromadb server

USAGE
  $ chromadb configure

DESCRIPTION
  set configuration for the chromadb server

See code: dist/commands/configure.ts

chromadb help [COMMANDS]

Display help for chromadb.

USAGE
  $ chromadb help [COMMANDS] [-n]

ARGUMENTS
  COMMANDS  Command to show help for.

FLAGS
  -n, --nested-commands  Include all nested commands in the output.

DESCRIPTION
  Display help for chromadb.

See code: @oclif/plugin-help

chromadb items count COLLECTION_NAME

count items in a collection

USAGE
  $ chromadb items count COLLECTION_NAME

ARGUMENTS
  COLLECTION_NAME  name of the collection

DESCRIPTION
  count items in a collection

EXAMPLES
  $ chromadb items count

See code: dist/commands/items/count.ts

chromadb items get COLLECTION_NAME ITEM_ID

get item in a collection

USAGE
  $ chromadb items get COLLECTION_NAME ITEM_ID

ARGUMENTS
  COLLECTION_NAME  name of the collection
  ITEM_ID          id of the item

DESCRIPTION
  get item in a collection

EXAMPLES
  $ chromadb items get

See code: dist/commands/items/get.ts

chromadb items peek COLLECTION_NAME

count items in a collection

USAGE
  $ chromadb items peek COLLECTION_NAME [--limit <value>]

ARGUMENTS
  COLLECTION_NAME  name of the collection

FLAGS
  --limit=<value>  [default: 10] how many items to return

DESCRIPTION
  count items in a collection

EXAMPLES
  $ chromadb items peek

See code: dist/commands/items/peek.ts

chromadb items query COLLECTION_NAME TEXT

query items in a collection

USAGE
  $ chromadb items query COLLECTION_NAME TEXT [--provider openai] [--model text-embedding-ada-002] [--limit
    <value>]

ARGUMENTS
  COLLECTION_NAME  name of the collection
  TEXT             text to query for

FLAGS
  --limit=<value>      [default: 10] how many items to return
  --model=<option>     [default: text-embedding-ada-002] what model to use
                       <options: text-embedding-ada-002>
  --provider=<option>  [default: openai] what LLM provider to use
                       <options: openai>

DESCRIPTION
  query items in a collection

EXAMPLES
  $ chromadb items query

See code: dist/commands/items/query.ts

chromadb update [CHANNEL]

update the chromadb CLI

USAGE
  $ chromadb update [CHANNEL] [-a] [-v <value> | -i] [--force]

FLAGS
  -a, --available        Install a specific version.
  -i, --interactive      Interactively select version to install. This is ignored if a channel is provided.
  -v, --version=<value>  Install a specific version.
  --force                Force a re-download of the requested version.

DESCRIPTION
  update the chromadb CLI

EXAMPLES
  Update to the stable channel:

    $ chromadb update stable

  Update to a specific version:

    $ chromadb update --version 1.0.0

  Interactively select version:

    $ chromadb update --interactive

  See available versions:

    $ chromadb update --available

See code: @oclif/plugin-update

Table of contents