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 🙏

© 2026 – Pkg Stats / Ryan Hefner

trieve-cli

v0.0.6

Published

Beta command-line interface for Trieve API that enables users to upload files and interact with them using agentic RAG (Retrieval Augmented Generation). Simplifies document management and Q&A workflows.

Downloads

24

Readme

Trieve Logo

Sign Up (1k chunks free) | Documentation | Discord | Matrix

Github stars Join Discord Join Matrix

Trieve CLI

A command-line interface for interacting with the Trieve API. The CLI enables users to upload files, check upload status, ask questions against their knowledge base, and configure their Trieve setup.

Installation

npm install -g trieve-cli

Configuration

Before using the CLI, you need to configure it with your Trieve credentials:

trieve configure

This interactive command will prompt you for:

  • Your Trieve Organization ID
  • Your Trieve Dataset ID
  • Your Trieve API Key
  • User ID (for topic ownership)

Alternatively, you can set these as environment variables:

  • TRIEVE_ORGANIZATION_ID
  • TRIEVE_DATASET_ID
  • TRIEVE_API_KEY

Commands

Upload Files

Upload a file to your Trieve dataset:

trieve upload [filePath] [-t, --tracking-id <trackingId>]

If no file path is provided, the CLI will prompt you to enter one interactively.

Check Upload Status

Check the status of your uploaded files:

trieve check-upload-status [-t, --tracking-id <trackingId>]

Without options, this will display an interactive menu to select files to check. If a tracking ID is provided, it will check the status of that specific file.

Ask Questions

Ask a question against your Trieve dataset:

trieve ask [question]

If no question is provided, the CLI will prompt you to enter one interactively. The response will be streamed back with reference information that you can expand by pressing 'j'.

Update Tool Configuration

Customize the RAG system prompt and tool configurations:

trieve update-tool-config [-t, --tool-description <toolDescription>] [-q, --query-description <queryDescription>] [-s, --system-prompt <systemPrompt>]

This allows you to customize:

  • Tool description: Instructions for when the LLM should use the search tool
  • Query description: How the LLM should formulate search queries
  • System prompt: Custom system prompt for the AI assistant

Features

  • 🔒 Secure Configuration: Local storage of API keys and configuration
  • 📤 File Uploads: Upload documents to your Trieve dataset
  • 📋 Status Tracking: Monitor the processing status of uploaded files
  • 🤔 Interactive Q&A: Ask questions and receive answers based on your uploaded documents
  • 📚 Reference Display: View source references for answers with expandable details
  • 🔧 Customizable RAG: Configure system prompts and tool behavior

Demo

Watch our demo video to see the Trieve CLI in action:

Trieve CLI Demo Video

Watch the Trieve CLI Demo Video on YouTube.

Examples

Upload a PDF and ask questions about it:

# Upload a document
trieve upload ./documents/report.pdf

# Check if processing is complete
trieve check-upload-status

# Ask a question about the content
trieve ask "What are the key findings in the report?"

Customize the RAG behavior:

# Update the tool configuration for more specific search behavior
trieve update-tool-config --query-description "Create precise search queries focusing on technical terms and definitions"

Development

To build the CLI from source:

# Install dependencies
npm install

# Build the TypeScript code
npm run build

# Run locally
npm start

License

MIT