weave-cli

module
v0.3.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2025 License: MIT

README ΒΆ

Weave CLI

A fast, AI-powered command-line tool for managing Weaviate vector databases. Built in Go for performance and ease of use.

Quick Start

Installation
git clone https://github.com/maximilien/weave-cli.git
cd weave-cli
./build.sh
# Binary available at bin/weave
# Interactive configuration - fastest way to get started
weave config create --env

# Follow prompts to enter:
# - WEAVIATE_URL
# - WEAVIATE_API_KEY
# - OPENAI_API_KEY

# Verify setup
weave health check
Basic Usage
# List collections
weave cols ls

# Create a collection
weave cols create MyCollection --text

# Add documents
weave docs create MyCollection document.txt
weave docs create MyCollection document.pdf

# Search with natural language
weave cols q MyCollection "search query"

# AI-powered REPL mode
weave
> show me all my collections
> create TestDocs collection
> add README.md to TestDocs

Key Features

  • πŸ€– AI-Powered - Natural language interface with GPT-4o multi-agent system
  • ⚑ Fast & Easy - Written in Go with simple CLI and interactive REPL
  • 🌐 Flexible - Weaviate Cloud, local instances, or built-in mock database
  • πŸ“¦ Batch Processing - Parallel processing of entire directories
  • πŸ“„ PDF Support - Intelligent text extraction and image processing
  • πŸ” Semantic Search - Vector-based similarity search with natural language

Documentation

Advanced Usage

Configuration Options

Auto-Configuration

Weave CLI automatically detects missing configuration:

# Try any command - you'll get prompted to configure interactively
weave cols ls

# Or install weave-mcp for REPL mode
weave config update --weave-mcp

Configuration Precedence (highest to lowest):

  1. Command-line flags - weave query --model gpt-4
  2. Environment variables - export OPENAI_MODEL=gpt-4
  3. config.yaml (optional) - For advanced customization
  4. Built-in defaults

See the User Guide for detailed configuration options.

More Examples
# Batch process documents with parallel workers
weave docs batch --directory ./docs --collection MyCollection --parallel 3

# Convert CMYK PDFs to RGB
weave docs pdf-convert document.pdf --rgb

# Text-only PDF extraction (faster, no images)
weave docs create MyCollection document.pdf --skip-all-images

# Natural language queries with AI agents
weave q "find all empty collections"
weave query "create TestDocs and add README.md" --dry-run

Database Support

  • Weaviate Cloud - Production-ready cloud instances
  • Weaviate Local - Self-hosted Weaviate instances
  • Mock Database - Built-in testing database (no external dependencies)

Development

# Setup development environment (installs linters, PDF tools, etc.)
./setup.sh

# Build, test, and lint
./build.sh
./test.sh
./lint.sh

See User Guide for detailed development instructions.

Contributing

Contributions welcome! Please:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes with tests
  4. Run ./test.sh and ./lint.sh
  5. Submit a pull request

License

MIT License - see LICENSE file for details.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL