
Documentation
🛠️CLI Tools Complete Guide
Master the hive command line interface with comprehensive examples, automatic prompt optimization, and advanced features
← Back to Documentation🛠️ CLI Tools Complete Guide
Master the hive command line interface with comprehensive examples, automatic prompt optimization, and advanced features.
Quick Installation
# Install globally via npm
npm install -g @hivetechs/hive-ai
# Verify installation
hive --version
Core Commands
hive consensus
Ask questions with 4-stage consensus pipeline
hive consensus "How do I deploy a React app?"
hive models
Search and compare AI models
hive models search "coding assistant"
hive consensus
Get multi-model consensus answers
hive consensus "What's the best database for my app?"
Advanced Features
Prompt Optimization
# Auto-optimize prompts
hive consensus "code" --optimize
Automatically improves your prompts for better results
Model Selection
# Use specific model
hive consensus "question" --model gpt-4
Choose from 400+ models across 60+ providers
Command Reference
# Basic usage
hive consensus "your question here"
# File input
hive consensus --file prompt.txt
# System prompts
hive consensus "question" --system "You are a coding expert"
# Save conversation
hive consensus "question" --save conversation.json
# Continue conversation
hive consensus "follow up" --load conversation.json
Configuration & Settings
API Keys Setup
hive configure --set-key openai sk-...
Default Model
hive configure --default-model claude-3-sonnet
Output Format
hive configure --output json --format pretty
Examples & Use Cases
Code Generation
hive consensus "Create a REST API in Python with FastAPI"
Code Review
hive consensus "Review this code for security issues" --file app.py
Documentation
hive consensus "Write API documentation" --file routes.js
Start Building with AI Today
Get instant access to 400+ AI models with automatic prompt optimization. No complex setup required.
# Get started in seconds
npm install -g @hivetechs/hive-ai
hive consensus "Hello, AI world!"
Ready to experience better AI answers?
Start your 7-day free trial today. No prompt engineering required!
Start Free Trial