Loading...
Loading...
CLI interface for Perplexity AI. Perform AI-powered searches, queries, and research directly from terminal. Use when user mentions Perplexity, AI search, web research, or needs to query AI models like GPT, Claude, Grok, Gemini. Commands: query.
npx skill4agent add quantmind-br/skills perplexity-cli# Verify installation
perplexity --help| Command | Description |
|---|---|
| Search with default settings |
| Mode | Flag | Description |
|---|---|---|
| pro | | Deep search with reasoning (default) |
| deep-research | | Comprehensive research |
perplexity "What is quantum computing?"perplexity "Explain neural networks" --mode properplexity -f question.md -o answer.md perplexity "Climate research" --sources web,scholar | Flag | Short | Description |
|---|---|---|
| Search mode | |
| | Sources: web,scholar,social |
| | Response language (e.g., en-US, pt-BR) |
| | Read query from file |
| | Save response to file |
--mode deep-research-f-o# Pipe query from stdin
echo "What is Go?" | perplexity
# Use in scripts
RESPONSE=$(perplexity "Quick answer" --mode pro 2>/dev/null)
# Batch processing
cat questions.txt | while read q; do
perplexity "$q" -o "answers/$(echo $q | md5sum | cut -c1-8).md"
done