The Cognee CLI provides the fastest way to get started with knowledge graphs - just add your data, cognify it, and start searching for insights in minutes.
CLI Status: The Cognee CLI is currently in development. Some features may be limited or unavailable. For full functionality, use the Python SDK or REST API.
Key Features
Simple Commands
Easy to UseIntuitive commands like
add
, cognify
, search
, and delete
for all operations.Multiple File Types
Flexible InputSupport for text files (.txt), PDFs (.pdf), and direct text input.
Interactive Search
Instant InsightsQuery your knowledge graphs with natural language questions.
Data Management
Complete ControlManage datasets, clear data, and organize your knowledge base.
Quick Start
1
Install Cognee
Install Cognee with CLI support using pip or your preferred package manager.
2
Add Your Data
Use the
add
command to include text or files in your knowledge base.3
Create Knowledge Graph
Run
cognify
to process your data into a structured knowledge graph.4
Search for Insights
Use
search
to query your knowledge graph with natural language.Core Commands
Add Data
Add text or files to your knowledge base:Add Text DirectlyPerfect for quick experiments and short text snippets.
Process Data
Transform your data into a knowledge graph:Search Knowledge
Query your knowledge graph with natural language:Manage Data
Clean up and organize your knowledge base:Complete Workflow Example
1
Add Research Data
Upload Academic Content
2
Create Knowledge Graph
Process into Graph
3
Explore Your Knowledge
Query for Insights
4
Manage Your Data
Clean Up When Done
Command Reference
cognee add
cognee add
Add Data to Knowledge Base
cognee cognify
cognee cognify
Process Data into Knowledge Graph
cognee search
cognee search
Query Knowledge Graph
cognee delete
cognee delete
Remove Data
Help System
Get help for any command or general usage:Pro Tip: Use
cognee <command> --help
to see detailed information about any command, including additional arguments, options, and usage examples.Use Cases
Academic Research
Best Practices
Data Organization
Structure Your Data
- Use descriptive dataset names
- Group related documents together
- Add meaningful metadata
- Keep datasets focused on specific topics
Efficient Workflows
Optimize Your Process
- Add all related data before cognifying
- Use batch operations for multiple files
- Test with small datasets first
- Use help commands to explore options
Troubleshooting
Common Issues
Common Issues
Frequent ProblemsCommand not found:File not found:Processing errors:
Getting Help
Getting Help
Support Resources
Next Steps
Python SDK
Advanced ProgrammingMove to the Python SDK for programmatic access and advanced features.
Configuration
Advanced SetupConfigure advanced settings, databases, and LLM providers.
API Reference
REST APIExplore the REST API for integration with other applications and languages.
MCP Integration
AI Assistant IntegrationIntegrate with Cursor, Claude Desktop, and other AI assistants.
New to Cognee? The CLI is the fastest way to get started! Try adding some text, running
cognee cognify
, and then searching for insights to see the power of knowledge graphs in action.