VibeCode CLI User Guide
Vibecode CLI User Guide
Section titled “Vibecode CLI User Guide”Version: 1.0.0 Last Updated: 2025-10-24
A unified, interactive command-line interface for managing all aspects of the Vibecode platform - from development and testing to deployment and monitoring.
Table of Contents
Section titled “Table of Contents”- Quick Start
- Installation
- Menu Navigation
- Category Guide
- Script Mapping
- Configuration
- Examples
- Troubleshooting
- Advanced Usage
Quick Start
Section titled “Quick Start”Prerequisites
Section titled “Prerequisites”- Node.js >= 18.18
- npm or yarn
- Docker (optional, for container workflows)
- Git
Installation
Section titled “Installation”# Clone the repositorygit clone https://github.com/yourusername/vibecode-webgui.gitcd vibecode-webgui
# Run the installerbash scripts/vibecode-cli/install.shFirst Run
Section titled “First Run”# Launch the CLIbash scripts/vibecode-cli.sh
# Or if installed globallyvibecode-cliInstallation
Section titled “Installation”Standard Installation
Section titled “Standard Installation”The installation script sets up your development environment with all necessary dependencies:
bash scripts/vibecode-cli/install.shWhat it does:
- Checks for required tools (Node.js, npm, Docker)
- Verifies Node.js version (>= 18.18)
- Creates
.env.localfrom example - Installs npm dependencies
- Runs project setup
- Executes health checks
Installation Options
Section titled “Installation Options”# Skip package installation (dependencies already installed)bash scripts/vibecode-cli/install.sh --skip-install
# Skip project setup (environment already configured)bash scripts/vibecode-cli/install.sh --skip-setup
# Show helpbash scripts/vibecode-cli/install.sh --helpGlobal Installation (Optional)
Section titled “Global Installation (Optional)”For convenience, you can add the CLI to your PATH:
# Add to ~/.bashrc or ~/.zshrcexport PATH="$PATH:/path/to/vibecode-webgui/scripts"
# Create aliasalias vibecode-cli='/path/to/vibecode-webgui/scripts/vibecode-cli.sh'
# Reload shellsource ~/.bashrc # or source ~/.zshrcValidation
Section titled “Validation”Verify your installation:
# Run validation scriptbash scripts/vibecode-cli/validate-config.sh
# Expected output:# ✓ Configuration valid# ✓ All required tools available# ✓ Environment variables setUninstallation
Section titled “Uninstallation”To remove the CLI and clean up:
bash scripts/vibecode-cli/uninstall.shMenu Navigation
Section titled “Menu Navigation”Main Menu Structure
Section titled “Main Menu Structure”When you launch the CLI, you’ll see:
╔════════════════════════════════════════════════════════════════╗║ ║║ VIBECODE CLI ║║ ║╚════════════════════════════════════════════════════════════════╝
Unified interface for Vibecode platform operations
1) Development & Testing 2) Security & Compliance 3) Database Operations 4) Deployment Automation 5) VM Management 6) Monitoring & Observability 7) Help & Documentation 0) Exit
Enter your choice:Navigation Tips
Section titled “Navigation Tips”- Numbers - Select menu options by entering their number
- 0 - Return to previous menu or exit
- Ctrl+C - Emergency exit (may leave processes running)
- Arrow Keys - Not supported; use number selection
- Enter - Confirm selection
Menu Breadcrumbs
Section titled “Menu Breadcrumbs”Current location shown in menu header:
Main > Monitoring & Observability > Datadog SetupCategory Guide
Section titled “Category Guide”1. Development & Testing
Section titled “1. Development & Testing”Purpose: Manage development workflows, testing, and code quality.
Menu Options
Section titled “Menu Options”DEVELOPMENT SETUP 1) Setup Local Development Environment 2) Start Development Server 3) Stop Development Server 4) Reset Development Environment
TESTING 5) Run All Tests 6) Run Unit Tests 7) Run Integration Tests 8) Run E2E Tests 9) Test Coverage Report
CODE QUALITY 10) Run Linter 11) Format Code 12) Type Check 13) Run All Checks
BUILD 14) Build Project 15) Build for Production 16) Clean Build ArtifactsCommon Workflows
Section titled “Common Workflows”Setup New Environment:
# Select: 1) Development & Testing# Then: 1) Setup Local Development Environment# Automatically handles:# - npm install# - .env.local creation# - database migrations# - seed dataPre-commit Checks:
# Select: 1) Development & Testing# Then: 13) Run All Checks# Runs:# - ESLint# - Prettier# - TypeScript compiler# - TestsKey Scripts
Section titled “Key Scripts”| Script | Purpose |
|---|---|
setup-local-dev.sh | Initialize development environment |
run-tests.sh | Execute test suites |
lint-fix.sh | Run and fix linting issues |
build-production.sh | Production build |
2. Security & Compliance
Section titled “2. Security & Compliance”Purpose: Security scanning, vulnerability assessment, and compliance validation.
Menu Options
Section titled “Menu Options”VULNERABILITY SCANNING 1) Scan Dependencies 2) Audit npm Packages 3) Check for Known Vulnerabilities 4) Generate Security Report
SECRET DETECTION 5) Scan for Exposed Secrets 6) Validate Environment Variables 7) Check Git History for Secrets
COMPLIANCE 8) Run Security Audit 9) Check Compliance Standards 10) Generate Compliance Report
MONITORING 11) Start Security Monitoring 12) View Security Alerts 13) Security DashboardCommon Workflows
Section titled “Common Workflows”Pre-deployment Security Check:
# Select: 2) Security & Compliance# Then: 1) Scan Dependencies# Then: 5) Scan for Exposed Secrets# Then: 8) Run Security AuditContinuous Monitoring:
# Select: 2) Security & Compliance# Then: 11) Start Security Monitoring# Monitors:# - Suspicious processes# - Failed authentication attempts# - Unusual network activity# - Configuration changesKey Scripts
Section titled “Key Scripts”| Script | Purpose |
|---|---|
security-monitoring.sh | Continuous security monitoring |
scan-vulnerabilities.sh | Dependency vulnerability scan |
detect-secrets.sh | Secret detection in codebase |
compliance-audit.sh | Compliance validation |
3. Database Operations
Section titled “3. Database Operations”Purpose: Database management, migrations, and operations.
Menu Options
Section titled “Menu Options”MIGRATIONS 1) Run Migrations 2) Rollback Migration 3) Migration Status 4) Create Migration
SEEDING 5) Seed Database 6) Reset and Seed 7) Seed Test Data
BACKUP & RESTORE 8) Backup Database 9) Restore Database 10) List Backups
MAINTENANCE 11) Optimize Database 12) Vacuum Database 13) Analyze Performance 14) Connection TestCommon Workflows
Section titled “Common Workflows”Database Setup:
# Select: 3) Database Operations# Then: 1) Run Migrations# Then: 5) Seed DatabaseBackup Before Changes:
# Select: 3) Database Operations# Then: 8) Backup Database# Creates timestamped backup in backups/Key Scripts
Section titled “Key Scripts”| Script | Purpose |
|---|---|
migrate-database.sh | Schema migrations |
seed-database.sh | Data seeding |
backup-database.sh | Database backup |
restore-database.sh | Database restore |
4. Deployment Automation
Section titled “4. Deployment Automation”Purpose: Deploy applications to various platforms and environments.
Menu Options
Section titled “Menu Options”ENVIRONMENT DEPLOYMENT 1) Deploy to Development 2) Deploy to Staging 3) Deploy to Production 4) Deploy to Custom Environment
PLATFORM DEPLOYMENT 5) Deploy to AKS (Azure) 6) Deploy to Fly.io 7) Deploy to Docker 8) Deploy to Kubernetes
ADVANCED 9) Blue/Green Deployment 10) Canary Deployment 11) Rollback Deployment 12) Deployment Status
VALIDATION 13) Validate Deployment 14) Health Check 15) Smoke TestsCommon Workflows
Section titled “Common Workflows”Production Deployment:
# Select: 4) Deployment Automation# Then: 3) Deploy to Production# Prompts for:# - Version/tag to deploy# - Confirmation# - Deployment method# Automatically:# - Runs pre-deployment checks# - Executes deployment# - Runs health checks# - Sends notificationsRollback:
# Select: 4) Deployment Automation# Then: 11) Rollback Deployment# Lists recent deployments# Prompts for version to rollback to# Executes rollback with validationKey Scripts
Section titled “Key Scripts”| Script | Purpose |
|---|---|
deploy-production.sh | Production deployment |
deploy-aks.sh | Azure Kubernetes Service deployment |
deploy-flyio.sh | Fly.io deployment |
rollback-deployment.sh | Deployment rollback |
5. VM Management
Section titled “5. VM Management”Purpose: Manage virtual machines for development and testing.
Menu Options
Section titled “Menu Options”VM LIFECYCLE 1) Create VM 2) Start VM 3) Stop VM 4) Delete VM 5) VM Status
CONFIGURATION 6) Configure VM 7) Update VM Settings 8) Install Tools 9) Setup Environment
SNAPSHOTS 10) Create Snapshot 11) Restore Snapshot 12) List Snapshots 13) Delete Snapshot
MONITORING 14) VM Resource Usage 15) VM Logs 16) Connect to VMCommon Workflows
Section titled “Common Workflows”Create Development VM:
# Select: 5) VM Management# Then: 1) Create VM# Prompts for:# - VM name# - Resources (CPU, RAM, Disk)# - Base image# Creates and configures VMSnapshot Before Changes:
# Select: 5) VM Management# Then: 10) Create Snapshot# Creates snapshot with timestamp# Allows easy rollback if neededKey Scripts
Section titled “Key Scripts”| Script | Purpose |
|---|---|
create-vm.sh | VM creation |
configure-vm.sh | VM configuration |
snapshot-vm.sh | Snapshot management |
monitor-vm.sh | Resource monitoring |
6. Monitoring & Observability
Section titled “6. Monitoring & Observability”Purpose: Comprehensive monitoring, metrics, logs, and observability.
Menu Options
Section titled “Menu Options”DATADOG SETUP 1) Deploy Datadog Monitoring Stack 2) Setup Azure OpenAI Monitoring 3) Setup AKS Datadog Monitoring 4) Setup PostgreSQL Datadog Monitoring 5) Check Datadog DBM Metrics 6) Verify Datadog Metrics
PERFORMANCE BASELINES 7) Record Performance Baseline 8) View Performance Baselines 9) Compare Performance Baselines 10) Continuous Performance Monitor
LOG ANALYSIS 11) View Application Logs 12) Search Logs 13) Tail Live Logs 14) Test Datadog Logging
METRICS DASHBOARD 15) View System Metrics 16) View Application Metrics 17) Setup Production Monitoring 18) Validate Monitoring Setup
HEALTH CHECKS 19) Check System Health 20) Check Services Health 21) Validate Health Endpoints 22) Test K8s Health Probes 23) Validate PostgreSQL Monitoring
SECURITY MONITORING 24) Start Security Monitoring 25) Monitor with Error Tracking
SPECIALIZED MONITORING 26) Setup AgentAPI Monitoring 27) Apply AI Gateway Monitoring 28) Deploy Local Dev with MonitoringCommon Workflows
Section titled “Common Workflows”Initial Monitoring Setup:
# Select: 6) Monitoring & Observability# Then: 1) Deploy Datadog Monitoring Stack# Prompts for:# - Deployment method (Docker Compose / Kubernetes)# - Datadog API key# - Environment name# Deploys:# - Datadog agent# - APM (Application Performance Monitoring)# - Log collection# - Metrics collectionPerformance Baseline:
# Before making changes:# Select: 6) Monitoring & Observability# Then: 7) Record Performance Baseline# Enter baseline name: "pre-optimization"
# After making changes:# Then: 7) Record Performance Baseline# Enter baseline name: "post-optimization"
# Compare:# Then: 9) Compare Performance Baselines# Select both baselines to compareLog Investigation:
# Select: 6) Monitoring & Observability# Then: 12) Search Logs# Enter search pattern: "error.*authentication"# Searches all log files for patternHealth Check:
# Select: 6) Monitoring & Observability# Then: 19) Check System Health# Shows:# - Disk usage# - Docker status# - Application status# - Memory usage# - CPU usageDatadog Integration
Section titled “Datadog Integration”APM (Application Performance Monitoring)
Section titled “APM (Application Performance Monitoring)”Monitors application performance and traces requests:
# Setup APM# Select: 6) Monitoring & Observability# Then: 1) Deploy Datadog Monitoring Stack
# Verify APM is working# Then: 6) Verify Datadog MetricsWhat APM monitors:
- Request latency and throughput
- Service dependencies
- Error rates
- Database queries
- External API calls
- Custom spans and traces
DBM (Database Monitoring)
Section titled “DBM (Database Monitoring)”Monitors PostgreSQL performance:
# Setup DBM# Select: 6) Monitoring & Observability# Then: 4) Setup PostgreSQL Datadog Monitoring
# Check metrics# Then: 5) Check Datadog DBM MetricsWhat DBM monitors:
- Query performance
- Connection pool usage
- Slow queries
- Lock contention
- Index usage
- Table statistics
CNM (Cloud Network Monitoring)
Section titled “CNM (Cloud Network Monitoring)”Monitors network traffic and connections:
# Included in main monitoring stack# Select: 6) Monitoring & Observability# Then: 1) Deploy Datadog Monitoring StackWhat CNM monitors:
- Network throughput
- Connection states
- DNS queries
- TCP/UDP traffic
- Service connectivity
LLM Observability
Section titled “LLM Observability”Monitors AI/LLM operations:
# Setup LLM monitoring# Select: 6) Monitoring & Observability# Then: 2) Setup Azure OpenAI MonitoringWhat it monitors:
- Token usage
- Model latency
- Request/response sizes
- Error rates
- Cost tracking
Performance Baselines
Section titled “Performance Baselines”Track and compare system performance over time:
Recording Baselines:
# Record current state# Select: 6) Monitoring & Observability# Then: 7) Record Performance Baseline# Enter name: "baseline-2025-10-24"
# Captures:# - CPU usage# - Memory usage# - Disk usage# - Network stats# - Application metricsComparing Baselines:
# Select: 6) Monitoring & Observability# Then: 9) Compare Performance Baselines# Enter first baseline: baseline-2025-10-24# Enter second baseline: baseline-2025-10-25
# Shows side-by-side comparison:# CPU: 45% → 38% (↓ 7%)# Memory: 2.1GB → 1.8GB (↓ 14%)# Response Time: 120ms → 95ms (↓ 21%)Log Analysis
Section titled “Log Analysis”View Logs:
# Select: 6) Monitoring & Observability# Then: 11) View Application Logs# Lists available log files# Select file to viewSearch Logs:
# Select: 6) Monitoring & Observability# Then: 12) Search Logs# Enter pattern: "ERROR.*database"# Searches all logs for pattern# Results shown with contextTail Logs:
# Select: 6) Monitoring & Observability# Then: 13) Tail Live Logs# Select log file to tail# Shows real-time log updates# Press Ctrl+C to stopHealth Checks
Section titled “Health Checks”System Health:
# Select: 6) Monitoring & Observability# Then: 19) Check System Health
# Output:# ✓ Disk usage OK: 45%# ✓ Docker is healthy# ✓ Application is running# ⚠ Memory usage high: 85%Services Health:
# Select: 6) Monitoring & Observability# Then: 20) Check Services Health
# Checks:# - Database connectivity# - Redis connectivity# - External API health# - Service endpointsHealth Endpoints:
# Select: 6) Monitoring & Observability# Then: 21) Validate Health Endpoints
# Tests all /health endpoints:# ✓ GET /api/health → 200 OK# ✓ GET /api/health/db → 200 OK# ✓ GET /api/health/cache → 200 OKSecurity Monitoring
Section titled “Security Monitoring”Continuous Monitoring:
# Select: 6) Monitoring & Observability# Then: 24) Start Security Monitoring
# Monitors every 5 minutes:# - Suspicious processes# - Failed authentication attempts# - Unusual network activity# - Disk usage spikes# - Malicious file uploads# - Configuration tampering# - Vulnerability scans (hourly)
# Sends alerts via webhook if configuredAlert Levels:
- HIGH - Immediate action required
- MEDIUM - Investigate soon
- LOW - Informational
Key Scripts
Section titled “Key Scripts”| Script | Purpose | Category |
|---|---|---|
deploy-monitoring.sh | Deploy monitoring stack | Datadog Setup |
setup-azure-openai-monitoring.sh | Azure OpenAI monitoring | Datadog Setup |
setup-aks-datadog-monitoring.sh | AKS monitoring | Datadog Setup |
setup-postgres-datadog-monitoring.sh | PostgreSQL monitoring | Datadog Setup |
check-datadog-dbmon-metrics.sh | Check DBM metrics | Datadog Setup |
verify-datadog-metrics.js | Verify metrics | Datadog Setup |
continuous-performance-monitor.sh | Performance monitoring | Performance |
test-datadog-logging.sh | Test logging | Logs |
test-health-endpoints.sh | Test health checks | Health |
validate-healthchecks.sh | Validate endpoints | Health |
test-k8s-health-probes.sh | K8s health probes | Health |
validate-postgres-monitoring.sh | Validate PostgreSQL | Health |
security-monitoring.sh | Security monitoring | Security |
monitor-with-error-tracking.sh | Error tracking | Specialized |
setup-agentapi-monitoring.ts | AgentAPI monitoring | Specialized |
apply-ai-gateway-monitoring.ts | AI Gateway monitoring | Specialized |
setup-local-dev-with-monitoring.sh | Local dev monitoring | Specialized |
Script Mapping
Section titled “Script Mapping”Complete mapping from standalone scripts to menu options:
Monitoring Scripts
Section titled “Monitoring Scripts”| Original Script | Menu Path | Description |
|---|---|---|
deploy-monitoring.sh | Monitoring > 1 | Deploy Datadog monitoring stack |
setup-azure-openai-monitoring.sh | Monitoring > 2 | Setup Azure OpenAI monitoring |
setup-aks-datadog-monitoring.sh | Monitoring > 3 | Setup AKS Datadog monitoring |
setup-postgres-datadog-monitoring.sh | Monitoring > 4 | Setup PostgreSQL monitoring |
check-datadog-dbmon-metrics.sh | Monitoring > 5 | Check Datadog DBM metrics |
verify-datadog-metrics.js | Monitoring > 6 | Verify Datadog metrics |
continuous-performance-monitor.sh | Monitoring > 10 | Continuous performance monitoring |
test-datadog-logging.sh | Monitoring > 14 | Test Datadog logging |
validate-monitoring.js | Monitoring > 18 | Validate monitoring setup |
test-monitoring.sh | Monitoring > 18 | Test monitoring integration |
test-health-endpoints.sh | Monitoring > 20 | Check services health |
validate-healthchecks.sh | Monitoring > 21 | Validate health endpoints |
test-k8s-health-probes.sh | Monitoring > 22 | Test K8s health probes |
validate-postgres-monitoring.sh | Monitoring > 23 | Validate PostgreSQL monitoring |
security-monitoring.sh | Monitoring > 24 | Start security monitoring |
monitor-with-error-tracking.sh | Monitoring > 25 | Monitor with error tracking |
setup-agentapi-monitoring.ts | Monitoring > 26 | Setup AgentAPI monitoring |
apply-ai-gateway-monitoring.ts | Monitoring > 27 | Apply AI Gateway monitoring |
setup-local-dev-with-monitoring.sh | Monitoring > 28 | Deploy local dev with monitoring |
Security Scripts
Section titled “Security Scripts”| Original Script | Menu Path | Description |
|---|---|---|
security-monitoring.sh | Security > 11 | Start security monitoring |
scan-vulnerabilities.sh | Security > 1 | Scan dependencies |
audit-security.sh | Security > 8 | Security audit |
Database Scripts
Section titled “Database Scripts”| Original Script | Menu Path | Description |
|---|---|---|
migrate-database.sh | Database > 1 | Run migrations |
seed-database.sh | Database > 5 | Seed database |
backup-database.sh | Database > 8 | Backup database |
restore-database.sh | Database > 9 | Restore database |
Deployment Scripts
Section titled “Deployment Scripts”| Original Script | Menu Path | Description |
|---|---|---|
deploy-production.sh | Deploy > 3 | Deploy to production |
deploy-aks.sh | Deploy > 5 | Deploy to AKS |
deploy-flyio.sh | Deploy > 6 | Deploy to Fly.io |
rollback-deployment.sh | Deploy > 11 | Rollback deployment |
Configuration
Section titled “Configuration”Environment Variables
Section titled “Environment Variables”Required Variables
Section titled “Required Variables”# DatabaseDATABASE_URL="postgresql://user:pass@host:5432/db"
# Datadog (at least one API key required for monitoring)DD_API_KEY="your_datadog_api_key"# orDATADOG_API_KEY="your_datadog_api_key"
# ApplicationNODE_ENV="development"Optional Variables
Section titled “Optional Variables”# Datadog ConfigurationDD_SERVICE="vibecode-webgui"DD_ENV="production"DD_VERSION="1.0.0"DD_SITE="datadoghq.com"DD_LLMOBS_ENABLED="true"
# Azure ConfigurationAZURE_CLIENT_ID="..."AZURE_CLIENT_SECRET="..."AZURE_TENANT_ID="..."AZURE_SUBSCRIPTION_ID="..."
# Deployment ConfigurationENVIRONMENT="production"DEPLOY_METHOD="kubernetes"NAMESPACE="vibecode"
# Security MonitoringSECURITY_MONITORING_INTERVAL="300"SECURITY_ALERT_WEBHOOK="https://..."MAX_LOG_SIZE="104857600"Configuration Files
Section titled “Configuration Files”.env.local
Section titled “.env.local”Primary environment configuration:
# Created automatically by install script# Copy from env.development.example
DATABASE_URL=postgresql://...DD_API_KEY=...NEXT_PUBLIC_API_URL=...vibecode-cli.config.sh
Section titled “vibecode-cli.config.sh”CLI-specific configuration:
# Optional: Create for custom CLI settings
# Default deployment methodexport DEFAULT_DEPLOY_METHOD="kubernetes"
# Default monitoring intervalexport DEFAULT_MONITOR_INTERVAL=60
# Custom scripts directoryexport CUSTOM_SCRIPTS_DIR="/path/to/custom/scripts"Examples
Section titled “Examples”Example 1: Complete Monitoring Setup
Section titled “Example 1: Complete Monitoring Setup”# 1. Install CLIbash scripts/vibecode-cli/install.sh
# 2. Configure environmentcp env.development.example .env.local# Edit .env.local and add DD_API_KEY
# 3. Launch CLIbash scripts/vibecode-cli.sh
# 4. Deploy monitoring stack# Select: 6) Monitoring & Observability# Select: 1) Deploy Datadog Monitoring Stack# Select: 1) Docker Compose# Enter API key (from .env.local)
# 5. Setup PostgreSQL monitoring# Select: 4) Setup PostgreSQL Datadog Monitoring
# 6. Validate setup# Select: 18) Validate Monitoring Setup
# 7. Record baseline# Select: 7) Record Performance Baseline# Enter name: "initial-setup"Example 2: Security Audit Workflow
Section titled “Example 2: Security Audit Workflow”# Launch CLIbash scripts/vibecode-cli.sh
# Navigate to Security menu# Select: 2) Security & Compliance
# Run dependency scan# Select: 1) Scan Dependencies
# Check for secrets# Select: 5) Scan for Exposed Secrets
# Run full audit# Select: 8) Run Security Audit
# Start continuous monitoring# Select: 11) Start Security Monitoring# (Press Ctrl+C to stop when done)Example 3: Database Operations
Section titled “Example 3: Database Operations”# Launch CLIbash scripts/vibecode-cli.sh
# Navigate to Database menu# Select: 3) Database Operations
# Backup current database# Select: 8) Backup Database# Backup saved to: backups/db-2025-10-24-143022.sql
# Run migrations# Select: 1) Run Migrations
# Seed with test data# Select: 7) Seed Test DataExample 4: Production Deployment
Section titled “Example 4: Production Deployment”# Launch CLIbash scripts/vibecode-cli.sh
# Navigate to Deployment menu# Select: 4) Deployment Automation
# Validate before deploy# Select: 13) Validate Deployment
# Deploy to production# Select: 3) Deploy to Production# Confirm: yes# Enter version: v1.2.3
# Health check after deploy# Select: 14) Health CheckExample 5: Log Investigation
Section titled “Example 5: Log Investigation”# Launch CLIbash scripts/vibecode-cli.sh
# Navigate to Monitoring menu# Select: 6) Monitoring & Observability
# Search for errors# Select: 12) Search Logs# Pattern: "ERROR.*timeout"# Directory: logs/
# Tail live logs for monitoring# Select: 13) Tail Live Logs# Select: logs/error.log# (Watch for new errors)Troubleshooting
Section titled “Troubleshooting”Common Issues
Section titled “Common Issues”Issue: “Command not found: vibecode-cli”
Section titled “Issue: “Command not found: vibecode-cli””Solution:
# Use full pathbash /path/to/vibecode-webgui/scripts/vibecode-cli.sh
# Or add to PATHexport PATH="$PATH:/path/to/vibecode-webgui/scripts"Issue: “Script not found” when selecting menu option
Section titled “Issue: “Script not found” when selecting menu option”Solution:
# Verify script existsls -la scripts/deploy-monitoring.sh
# Check execute permissionschmod +x scripts/*.sh
# Verify PROJECT_ROOT is set correctlyecho $PROJECT_ROOTIssue: “DD_API_KEY is required”
Section titled “Issue: “DD_API_KEY is required””Solution:
# Add to .env.localecho "DD_API_KEY=your_api_key_here" >> .env.local
# Or export in shellexport DD_API_KEY="your_api_key_here"
# Or pass as parameterbash scripts/deploy-monitoring.sh -d "your_api_key_here"Issue: Colors not displaying properly
Section titled “Issue: Colors not displaying properly”Solution:
# Disable colorsexport NO_COLOR=1
# Use a terminal with color support# macOS: iTerm2, Terminal.app# Linux: gnome-terminal, konsole# Windows: Windows Terminal, WSLIssue: “Permission denied” when running scripts
Section titled “Issue: “Permission denied” when running scripts”Solution:
# Add execute permissionschmod +x scripts/vibecode-cli.shchmod +x scripts/vibecode-cli-lib/*.sh
# Or run with bash explicitlybash scripts/vibecode-cli.shIssue: Database connection failures
Section titled “Issue: Database connection failures”Solution:
# Check DATABASE_URLecho $DATABASE_URL
# Test connectionpsql $DATABASE_URL -c "SELECT 1"
# Verify PostgreSQL is runningdocker ps | grep postgres# orpg_isreadyIssue: Docker not accessible
Section titled “Issue: Docker not accessible”Solution:
# Start Docker Desktop (macOS/Windows)open -a Docker
# Or start Docker daemon (Linux)sudo systemctl start docker
# Check Docker statusdocker info
# Add user to docker group (Linux)sudo usermod -aG docker $USER# Then log out and back inDebug Mode
Section titled “Debug Mode”Enable debug output:
# Run with debug flagDEBUG=1 bash scripts/vibecode-cli.sh
# Or set in environmentexport DEBUG=1bash scripts/vibecode-cli.sh
# See all commands being executedset -xbash scripts/vibecode-cli.shCLI logs are stored in:
# View CLI logstail -f .vibecode-cli/logs/cli.log
# View script logstail -f .vibecode-cli/logs/scripts.log
# View error logstail -f .vibecode-cli/logs/error.logGetting Help
Section titled “Getting Help”# In-CLI help# Select: 7) Help & Documentation
# Script helpbash scripts/deploy-monitoring.sh --helpbash scripts/vibecode-cli/install.sh --help
# Read documentationcat scripts/VIBECODE_CLI.mdcat scripts/vibecode-cli-lib/README.mdAdvanced Usage
Section titled “Advanced Usage”Direct Script Execution
Section titled “Direct Script Execution”You can bypass the menu and run scripts directly:
# Deploy monitoringbash scripts/deploy-monitoring.sh -d "$DD_API_KEY"
# Run testsbash scripts/run-tests.sh --coverage
# Database migrationbash scripts/migrate-database.shEnvironment-Specific Configuration
Section titled “Environment-Specific Configuration”Use different configurations for different environments:
# DevelopmentENV=development bash scripts/vibecode-cli.sh
# StagingENV=staging bash scripts/deploy-production.sh
# ProductionENV=production bash scripts/deploy-production.shAutomation and CI/CD
Section titled “Automation and CI/CD”Use the CLI in automated workflows:
#!/bin/bash# deploy.sh - Automated deployment script
set -e
# Run security checksbash scripts/vibecode-cli.sh << EOF21800EOF
# Deploybash scripts/vibecode-cli.sh << EOF43yes$VERSION0EOF
# Verifybash scripts/vibecode-cli.sh << EOF619200EOFCustom Scripts
Section titled “Custom Scripts”Add custom scripts to the CLI:
# 1. Create custom scriptcat > scripts/custom-deploy.sh << 'EOF'#!/bin/bashecho "Running custom deployment..."# Your custom logic hereEOF
# 2. Make executablechmod +x scripts/custom-deploy.sh
# 3. Add to menu (edit scripts/vibecode-cli-lib/deploy-menu.sh)# Add option and case statement
# 4. Testbash scripts/vibecode-cli.shParallel Execution
Section titled “Parallel Execution”Run multiple operations in parallel:
# Run in backgroundbash scripts/deploy-monitoring.sh &bash scripts/setup-postgres-monitoring.sh &bash scripts/validate-monitoring.sh &
# Wait for all to completewait
echo "All monitoring setup complete"Remote Execution
Section titled “Remote Execution”Execute CLI commands on remote servers:
# SSH to remote serverssh user@server 'bash -s' < scripts/deploy-monitoring.sh
# Or with parametersssh user@server "cd /app && DD_API_KEY=$DD_API_KEY bash scripts/deploy-monitoring.sh"Best Practices
Section titled “Best Practices”1. Always Validate Before Deploy
Section titled “1. Always Validate Before Deploy”# Run validation checks before any deployment# Monitoring > Validate Monitoring Setup# Deployment > Validate Deployment2. Create Backups
Section titled “2. Create Backups”# Before major changes:# Database > Backup Database# VM > Create Snapshot3. Use Performance Baselines
Section titled “3. Use Performance Baselines”# Record baseline before and after changes# Monitoring > Record Performance Baseline# Make changes# Monitoring > Record Performance Baseline# Monitoring > Compare Performance Baselines4. Monitor Security Continuously
Section titled “4. Monitor Security Continuously”# Start security monitoring in production# Security > Start Security Monitoring# Configure webhook alerts5. Review Logs Regularly
Section titled “5. Review Logs Regularly”# Set up log review routine# Monitoring > View Application Logs# Monitoring > Search LogsSupport and Resources
Section titled “Support and Resources”Documentation
Section titled “Documentation”- This Guide:
scripts/VIBECODE_CLI.md - Library Docs:
scripts/vibecode-cli-lib/README.md - Main README:
README.md - API Docs:
docs/
Help Commands
Section titled “Help Commands”# CLI helpbash scripts/vibecode-cli.sh --help
# Script helpbash scripts/[script-name].sh --help
# In-menu help# Select: 7) Help & DocumentationCommon Commands Reference
Section titled “Common Commands Reference”# Installationbash scripts/vibecode-cli/install.sh
# Validationbash scripts/vibecode-cli/validate-config.sh
# Launch CLIbash scripts/vibecode-cli.sh
# Direct script executionbash scripts/[script-name].sh [options]
# Debug modeDEBUG=1 bash scripts/vibecode-cli.sh
# Uninstallbash scripts/vibecode-cli/uninstall.shVersion: 1.0.0 Last Updated: 2025-10-24 Maintainer: Vibecode Platform Team License: MIT