Commands Reference
VritraAI includes 100+ built-in commands organized into categories. This page provides an overview of all command categories. Click on any category to see detailed documentation for each command.
Tip: Use the help command in VritraAI to see all commands with descriptions in your terminal.
Command Categories
๐ File Operations
File management, reading, editing, searching, comparison, and validation tools. 15 commands including ls, read_file, edit_file, create_file, compare, diff, hash, validate, and format.
๐ Search & Navigation
Smart search capabilities with regex patterns, semantic search, and recent file/command tracking. 3 commands: search_regex, search_semantic, and recent.
๐งช AI Commands
Natural language AI assistant, command explanations, learning system, and content generation. 7 commands including ai, explain, summarize, learn, cheat, and generate.
๐ Code Review & Analysis
AI-powered code review, security scanning, optimization, and refactoring suggestions. 5 commands: review, explain_last, security_scan, optimize_code, and refactor.
๐ Project Detection
Intelligent project type detection, dependency checking, health analysis, and optimization. 5 commands: project_type, dependencies_check, project_health, missing_files, and project_optimize.
๐ Documentation Generator
Generate documentation including README files, docstrings, tutorials, and architecture diagrams. 5 commands: doc docstring, doc readme, doc tutorial, and doc diagram.
๐ API Management
Configure and manage API keys and API providers (Gemini/OpenRouter). 9 commands including api_base, apikey show/set/clear/test.
๐ค Model Management
Switch between AI models, search models, and manage model settings. 5 commands: model, model set, model search, model current, and model list.
โ๏ธ System Commands
System information, environment management, and utility commands with automatic path expansion. 14 commands including cd, clear, exit, help, sys_info, disk_usage, env, path, which, uptime, memory, processes, time, and calc. All file/directory commands support ~ and environment variable expansion.
๐ Network & System
Network diagnostics, system performance analysis, and optimization tools. 3 commands: network, analyze_system, and optimize.
โ๏ธ Configuration
View and manage VritraAI configuration settings, control safe mode, and create code templates. 3 commands: config, safe_mode, and template.
๐จ Customization
Themes (37 available), prompt styles (60+ available), and banner management. 6 commands: theme, prompt, and banner with various subcommands.
๐ง Utilities
Text encoding/decoding, command history with timestamps, and feedback submission. 4 commands: encode, decode, history, and feedback.
Session & History
Commands for managing session data and viewing command history:
session
Show current session information and statistics
session save [filename]
Save session data to JSON file
session clear
Clear current session data
history [number]
Show command history with timestamps. Supports piping to head and tail for filtering. Includes duplicate prevention and accurate command counting.
Built-in Aliases
VritraAI includes convenient aliases for common commands:
ll, la, l โ ls variants
gp, gs, ga, gc โ git shortcuts
Quick Reference
Here are the most commonly used commands:
ai <prompt>
Natural language AI assistant - ask anything!
explain_last
Explain the last executed system command and its output
review <file|directory>
Comprehensive AI-powered code review
ls [options] [path]
Rich colored directory listing with syntax highlighting
read_file <filename>
Read and display files with syntax highlighting
theme [name]
Switch color themes (37 available themes)
prompt [style]
Change prompt style (60+ creative styles available)
config
Show current configuration settings
๐ก Note: For detailed documentation on each command category, click on the category cards above or use the sidebar navigation.