Using /
Commands (Interactive Mode)
Master Ona Terminalβs interactive CLI with slash commands and examples.
Getting Started
Launch interactive mode:
ona-terminal
Youβll see the interactive prompt:
π€ |
Type any command or natural language request.
Essential System Commands
Help and Discovery
# Show all available commands
π€ | /help
# List all slash commands with descriptions
π€ | /commands
# Get help for specific command
π€ | /help github
System Status and Configuration
# Check system status and model availability
π€ | /status
π€ | /health
# List available MCP servers and their status
π€ | /servers
# Show available AI models
π€ | /models
π€ | /model
# Interactive configuration management
π€ | /configure
File Operations
Reading and Viewing Files
# Read and display file contents
π€ | /read config.py
π€ | /read README.md
π€ | /read src/main.py
# Read with line limit
π€ | /read --lines 50 large_file.txt
Directory Operations
# List directory contents
π€ | /list
π€ | /list src/
# List with hidden files
π€ | /list --all
# List with detailed information
π€ | /list --details
Search Operations
# Search for files and content
π€ | /find main.py
π€ | /find "function name"
π€ | /find "import requests"
# Search by type
π€ | /find --type file "*.py"
π€ | /find --type dir "test*"
π€ | /find --type content "TODO"
# Search in specific path
π€ | /find pattern --path src/
Code Operations
AI-Assisted File Editing
# Edit files with AI assistance
π€ | /edit config.py
π€ | /edit src/main.py "add error handling"
π€ | /edit README.md "update installation instructions"
# Interactive editing
π€ | /edit app.py
# Follow prompts for what changes to make
GitHub Integration
Repository Operations
# GitHub authentication
π€ | /github auth login
π€ | /github auth status
π€ | /github auth logout
# Repository information
π€ | /github repo info owner/repo
π€ | /github repo info owner/repo --details
# Issues management
π€ | /github issues list owner/repo
π€ | /github issues list owner/repo --state=closed
# Pull requests
π€ | /github pr list owner/repo
π€ | /github pr list owner/repo --state=all
# Webhooks
π€ | /github webhook list owner/repo
# Rate limiting
π€ | /github rate-limit
O&M Specific Commands
Inverter Operations
# Upload inverter data for analysis
π€ | /upload-inverter upload CUSTOMER_ID LOCATION MANUFACTURER SERIAL_NUMBER FILE_PATH REGION CLIENT_ID
π€ | /upload-inverter CUSTOMER_ID LOCATION MANUFACTURER SERIAL_NUMBER FILE_PATH REGION CLIENT_ID
π€ | /upload-inverter CUSTOMER_ID LOCATION MANUFACTURER SERIAL_NUMBER FILE_PATH REGION CLIENT_ID
# Check upload status
π€ | /upload-inverter status [UPLOAD_ID]
π€ | /upload-inverter status [UPLOAD_ID]
# Generate forecasts
π€ | /forecast-inverter start CUSTOMER_ID LOCATION MANUFACTURER SERIAL_NUMBER REGION FORECAST_TYPE HORIZON_DAYS FREQUENCY
π€ | /forecast-inverter start CUSTOMER_ID LOCATION MANUFACTURER SERIAL_NUMBER REGION FORECAST_TYPE HORIZON_DAYS FREQUENCY
π€ | /forecast-inverter start CUSTOMER_ID LOCATION MANUFACTURER SERIAL_NUMBER REGION FORECAST_TYPE HORIZON_DAYS FREQUENCY
# Get forecast results
π€ | /forecast-inverter get CUSTOMER_ID LOCATION MANUFACTURER SERIAL_NUMBER REGION OUTPUT_DIR FORECAST_TYPE
π€ | /forecast-inverter get CUSTOMER_ID LOCATION MANUFACTURER SERIAL_NUMBER REGION OUTPUT_DIR FORECAST_TYPE
# Check forecast status
π€ | /forecast-inverter status [REQUEST_ID]
π€ | /forecast-inverter status [REQUEST_ID]
Example O&M Workflows
# Upload inverter data
π€ | /upload-inverter SOLAR001 "Cape Town" "SolarEdge" SE12345 /data/inverter.csv af-south-1 client123
# Monitor processing
π€ | /upload-inverter status SOLAR001_SE12345_1754151842
# Generate 7-day forecast
π€ | /forecast-inverter start SOLAR001 "Cape Town" "SolarEdge" SE12345 af-south-1 P50 7 daily
# Get forecast results
π€ | /forecast-inverter get SOLAR001 "Cape Town" "SolarEdge" SE12345 af-south-1 /tmp/forecasts P50
Configuration and Prompts
System Prompt Management
# List all available system prompts
π€ | /prompts list
# Select a system prompt for current and future sessions
π€ | /prompts select simple
π€ | /prompts select medium
π€ | /prompts select ooda
# Show current prompt
π€ | /prompts current
Planning File Management (.ona)
# Set up .ona directory and .gitignore
π€ | /ona setup
π€ | /ona setup
# List all planning files in .ona directory
π€ | /ona list
π€ | /ona list
# Create planning files
π€ | /ona create --content "Planning content here" --type plan
π€ | /ona create --content "Analysis content here" --type insights
# Show .ona status
π€ | /ona status
Command Categories Reference
System Commands
/help
- Show help information/commands
- List all slash commands/status
- Show system status/servers
- List MCP servers/models
- Show available AI models/configure
- Interactive configuration
File Operations
/read
- Read file contents/list
- List directory contents/find
- Search for files and content/edit
- AI-assisted file editing
GitHub Integration
/github
- Complete GitHub operations suite
O&M Operations
/upload-inverter
- Data upload workflows/forecast-inverter
- Forecast generation
Configuration
/prompts
- System prompt management/ona
- Planning file management
Natural Language Integration
You can also use natural language for complex tasks:
# Code generation
π€ | generate a python function that reads CSV files
π€ | create a terraform module for AWS S3 bucket
π€ | write unit tests for my authentication function
# Analysis and review
π€ | analyze this Python file for performance issues
π€ | review my repository structure and suggest improvements
π€ | scan my codebase for security vulnerabilities
# Infrastructure operations
π€ | deploy a microservices architecture on AWS
π€ | create a Kubernetes deployment with monitoring
π€ | analyze my inverter data and generate forecast
Tips and Best Practices
Command Efficiency
- Use shorter aliases when available (e.g.,
/ls
instead of/list
) - Tab completion works for command names and file paths
- Use
--help
with any command to see detailed options
File Operations
- Always use absolute paths or ensure youβre in the correct directory
- Use
/find
to locate files before reading them - The
/edit
command provides AI assistance for complex modifications
GitHub Workflows
- Set up authentication once with
/github auth login
- Use
/github rate-limit
to check API limits before bulk operations - Repository analysis works with both public and private repos
O&M Operations
- Upload data files should be in CSV format
- Monitor upload status before starting forecasts
- Forecast generation may take several minutes for large datasets
Planning Integration
- Use
/ona setup
once per project to initialize planning files - Planning files are automatically excluded from git tracking
- System prompts automatically create planning artifacts in
.ona/
Troubleshooting
Command Not Found
If a command isnβt recognized:
- Check
/commands
to see all available commands - Ensure youβre using the correct syntax with
/help command_name
- Try the command aliases (e.g.,
/gh
instead of/github
)
File Operations Issues
- Use absolute paths or check current directory with
/list
- Verify file permissions for
/read
and/edit
operations - Use
/find
to locate files before operating on them
GitHub Integration Issues
- Check authentication status with
/github auth status
- Verify repository permissions and access
- Use
/github rate-limit
to check API quotas
O&M Data Issues
- Ensure CSV files are properly formatted
- Check file paths are accessible
- Monitor upload status before proceeding with forecasts
For additional help, use /help
followed by the specific command name for detailed usage information.