Skip to content

v1.0.0

Latest

Choose a tag to compare

@AbdullahAdeebx AbdullahAdeebx released this 16 Mar 23:32

perplexity-cli v1.0.0 - Initial Release

Overview

perplexity-cli is a command-line interface tool that allows you to interact with the Perplexity API directly from your terminal. Ask questions, get AI-powered responses, and streamline your workflow without leaving the command line.

Features

  • πŸ” Query Perplexity AI: Run natural language queries directly from your terminal
  • 🌊 Stream Responses: Watch responses generate in real-time with the --stream option
  • πŸ’Ύ Save Results: Export responses to files with the --output option
  • πŸ”„ Query History: View your recent query history
  • πŸ” API Key Management: Securely store and manage your Perplexity API key
  • πŸ€– Multiple Models: Choose from various Perplexity AI models

Supported Models

  • sonar: Default, balanced speed and capability
  • sonar-small: Fastest, least capable
  • sonar-medium: Good balance of speed and capability
  • sonar-large: Most capable, slower
  • codellama-70b: Specialized for code generation
  • mistral-7b: Open-source model
  • mixtral-8x7b: Mixture of experts model
  • llama-3-70b: Meta's latest model

Installation

NPM (Recommended)

npm install -g perplexity-cli

Direct Use

npx perplexity-cli

From Source

git clone https://github.com/AbdullahAdeebx/perplexity-cli.git
cd perplexity-cli
npm install
npm link

Quick Start

  1. Set your API key:

    perplexity-cli set-key YOUR_API_KEY_HERE
  2. Run your first query:

    perplexity-cli query "What is the capital of France?"
  3. Try streaming a response:

    perplexity-cli query "Explain quantum computing" --stream

Requirements

Documentation

For complete documentation, visit the GitHub repository.

License

MIT