perplexity-cli
13
总安装量
9
周安装量
#24744
全站排名
安装命令
npx skills add https://github.com/quantmind-br/skills --skill perplexity-cli
Agent 安装分布
opencode
6
github-copilot
6
codex
6
gemini-cli
6
antigravity
5
kilo
5
Skill 文档
Perplexity CLI Skill
Overview
Perplexity CLI is a command-line interface for Perplexity AI that allows AI-powered searches directly from the terminal with support for multiple models, streaming output, and file attachments.
Prerequisites
# Verify installation
perplexity --help
Quick Reference
| Command | Description |
|---|---|
perplexity "query" |
Search with default settings |
| Mode | Flag | Description |
|---|---|---|
| pro | --mode pro |
Deep search with reasoning (default) |
| deep-research | --mode deep-research |
Comprehensive research |
Common Operations
Basic Query
perplexity "What is quantum computing?"
Query with Specific Mode
perplexity "Explain neural networks" --mode pro
Read Query from File, Save Response
perplexity -f question.md -o answer.md
Query with Sources
perplexity "Climate research" --sources web,scholar
All Flags
| Flag | Short | Description |
|---|---|---|
--mode |
Search mode | |
--sources |
-s |
Sources: web,scholar,social |
--language |
-l |
Response language (e.g., en-US, pt-BR) |
--file |
-f |
Read query from file |
--output |
-o |
Save response to file |
Best Practices
- Use
--mode deep-researchfor comprehensive research tasks - Use
-fand-oflags for batch processing
Piping and Scripting
# 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