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
Setup (Interactive - Recommended)
# 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
# List available embeddings
weave embeddings list
weave emb ls --verbose
# Create collection with specific embedding (used as default for all documents)
weave cols create MyCollection --embedding text-embedding-3-small
weave cols create MyCollection -e text-embedding-ada-002
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
- π Embeddings - List and explore available embedding models
- β±οΈ Configurable Timeouts - Default 10s timeout, adjustable per
command
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):
- Command-line flags -
weave query --model gpt-4
- Environment variables -
export OPENAI_MODEL=gpt-4
- config.yaml (optional) - For advanced customization
- 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
# Configure timeout for slow connections
weave cols ls --timeout 30s
weave health check --timeout 60s
# Create collections and documents with specific embeddings
weave cols create MyCollection --embedding text-embedding-3-small
weave docs create MyCollection document.txt --embedding text-embedding-3-small
weave docs create MyCollection report.pdf --embedding text-embedding-ada-002
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:
- Fork the repository
- Create a feature branch
- Make your changes with tests
- Run
./test.sh and ./lint.sh
- Submit a pull request
Links
License
MIT License - see LICENSE file for details.