Skip to content

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.

  • Node.js >= 18.18
  • npm or yarn
  • Docker (optional, for container workflows)
  • Git
Terminal window
# Clone the repository
git clone https://github.com/yourusername/vibecode-webgui.git
cd vibecode-webgui
# Run the installer
bash scripts/vibecode-cli/install.sh
Terminal window
# Launch the CLI
bash scripts/vibecode-cli.sh
# Or if installed globally
vibecode-cli

The installation script sets up your development environment with all necessary dependencies:

Terminal window
bash scripts/vibecode-cli/install.sh

What it does:

  1. Checks for required tools (Node.js, npm, Docker)
  2. Verifies Node.js version (>= 18.18)
  3. Creates .env.local from example
  4. Installs npm dependencies
  5. Runs project setup
  6. Executes health checks
Terminal window
# 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 help
bash scripts/vibecode-cli/install.sh --help

For convenience, you can add the CLI to your PATH:

Terminal window
# Add to ~/.bashrc or ~/.zshrc
export PATH="$PATH:/path/to/vibecode-webgui/scripts"
# Create alias
alias vibecode-cli='/path/to/vibecode-webgui/scripts/vibecode-cli.sh'
# Reload shell
source ~/.bashrc # or source ~/.zshrc

Verify your installation:

Terminal window
# Run validation script
bash scripts/vibecode-cli/validate-config.sh
# Expected output:
# ✓ Configuration valid
# ✓ All required tools available
# ✓ Environment variables set

To remove the CLI and clean up:

Terminal window
bash scripts/vibecode-cli/uninstall.sh

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:
  • 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

Current location shown in menu header:

Main > Monitoring & Observability > Datadog Setup

Purpose: Manage development workflows, testing, and code quality.

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 Artifacts

Setup New Environment:

Terminal window
# Select: 1) Development & Testing
# Then: 1) Setup Local Development Environment
# Automatically handles:
# - npm install
# - .env.local creation
# - database migrations
# - seed data

Pre-commit Checks:

Terminal window
# Select: 1) Development & Testing
# Then: 13) Run All Checks
# Runs:
# - ESLint
# - Prettier
# - TypeScript compiler
# - Tests
ScriptPurpose
setup-local-dev.shInitialize development environment
run-tests.shExecute test suites
lint-fix.shRun and fix linting issues
build-production.shProduction build

Purpose: Security scanning, vulnerability assessment, and compliance validation.

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 Dashboard

Pre-deployment Security Check:

Terminal window
# Select: 2) Security & Compliance
# Then: 1) Scan Dependencies
# Then: 5) Scan for Exposed Secrets
# Then: 8) Run Security Audit

Continuous Monitoring:

Terminal window
# Select: 2) Security & Compliance
# Then: 11) Start Security Monitoring
# Monitors:
# - Suspicious processes
# - Failed authentication attempts
# - Unusual network activity
# - Configuration changes
ScriptPurpose
security-monitoring.shContinuous security monitoring
scan-vulnerabilities.shDependency vulnerability scan
detect-secrets.shSecret detection in codebase
compliance-audit.shCompliance validation

Purpose: Database management, migrations, and operations.

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 Test

Database Setup:

Terminal window
# Select: 3) Database Operations
# Then: 1) Run Migrations
# Then: 5) Seed Database

Backup Before Changes:

Terminal window
# Select: 3) Database Operations
# Then: 8) Backup Database
# Creates timestamped backup in backups/
ScriptPurpose
migrate-database.shSchema migrations
seed-database.shData seeding
backup-database.shDatabase backup
restore-database.shDatabase restore

Purpose: Deploy applications to various platforms and environments.

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 Tests

Production Deployment:

Terminal window
# 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 notifications

Rollback:

Terminal window
# Select: 4) Deployment Automation
# Then: 11) Rollback Deployment
# Lists recent deployments
# Prompts for version to rollback to
# Executes rollback with validation
ScriptPurpose
deploy-production.shProduction deployment
deploy-aks.shAzure Kubernetes Service deployment
deploy-flyio.shFly.io deployment
rollback-deployment.shDeployment rollback

Purpose: Manage virtual machines for development and testing.

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 VM

Create Development VM:

Terminal window
# Select: 5) VM Management
# Then: 1) Create VM
# Prompts for:
# - VM name
# - Resources (CPU, RAM, Disk)
# - Base image
# Creates and configures VM

Snapshot Before Changes:

Terminal window
# Select: 5) VM Management
# Then: 10) Create Snapshot
# Creates snapshot with timestamp
# Allows easy rollback if needed
ScriptPurpose
create-vm.shVM creation
configure-vm.shVM configuration
snapshot-vm.shSnapshot management
monitor-vm.shResource monitoring

Purpose: Comprehensive monitoring, metrics, logs, and observability.

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 Monitoring

Initial Monitoring Setup:

Terminal window
# 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 collection

Performance Baseline:

Terminal window
# 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 compare

Log Investigation:

Terminal window
# Select: 6) Monitoring & Observability
# Then: 12) Search Logs
# Enter search pattern: "error.*authentication"
# Searches all log files for pattern

Health Check:

Terminal window
# Select: 6) Monitoring & Observability
# Then: 19) Check System Health
# Shows:
# - Disk usage
# - Docker status
# - Application status
# - Memory usage
# - CPU usage

Monitors application performance and traces requests:

Terminal window
# Setup APM
# Select: 6) Monitoring & Observability
# Then: 1) Deploy Datadog Monitoring Stack
# Verify APM is working
# Then: 6) Verify Datadog Metrics

What APM monitors:

  • Request latency and throughput
  • Service dependencies
  • Error rates
  • Database queries
  • External API calls
  • Custom spans and traces

Monitors PostgreSQL performance:

Terminal window
# Setup DBM
# Select: 6) Monitoring & Observability
# Then: 4) Setup PostgreSQL Datadog Monitoring
# Check metrics
# Then: 5) Check Datadog DBM Metrics

What DBM monitors:

  • Query performance
  • Connection pool usage
  • Slow queries
  • Lock contention
  • Index usage
  • Table statistics

Monitors network traffic and connections:

Terminal window
# Included in main monitoring stack
# Select: 6) Monitoring & Observability
# Then: 1) Deploy Datadog Monitoring Stack

What CNM monitors:

  • Network throughput
  • Connection states
  • DNS queries
  • TCP/UDP traffic
  • Service connectivity

Monitors AI/LLM operations:

Terminal window
# Setup LLM monitoring
# Select: 6) Monitoring & Observability
# Then: 2) Setup Azure OpenAI Monitoring

What it monitors:

  • Token usage
  • Model latency
  • Request/response sizes
  • Error rates
  • Cost tracking

Track and compare system performance over time:

Recording Baselines:

Terminal window
# 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 metrics

Comparing Baselines:

Terminal window
# 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%)

View Logs:

Terminal window
# Select: 6) Monitoring & Observability
# Then: 11) View Application Logs
# Lists available log files
# Select file to view

Search Logs:

Terminal window
# Select: 6) Monitoring & Observability
# Then: 12) Search Logs
# Enter pattern: "ERROR.*database"
# Searches all logs for pattern
# Results shown with context

Tail Logs:

Terminal window
# Select: 6) Monitoring & Observability
# Then: 13) Tail Live Logs
# Select log file to tail
# Shows real-time log updates
# Press Ctrl+C to stop

System Health:

Terminal window
# 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:

Terminal window
# Select: 6) Monitoring & Observability
# Then: 20) Check Services Health
# Checks:
# - Database connectivity
# - Redis connectivity
# - External API health
# - Service endpoints

Health Endpoints:

Terminal window
# 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 OK

Continuous Monitoring:

Terminal window
# 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 configured

Alert Levels:

  • HIGH - Immediate action required
  • MEDIUM - Investigate soon
  • LOW - Informational
ScriptPurposeCategory
deploy-monitoring.shDeploy monitoring stackDatadog Setup
setup-azure-openai-monitoring.shAzure OpenAI monitoringDatadog Setup
setup-aks-datadog-monitoring.shAKS monitoringDatadog Setup
setup-postgres-datadog-monitoring.shPostgreSQL monitoringDatadog Setup
check-datadog-dbmon-metrics.shCheck DBM metricsDatadog Setup
verify-datadog-metrics.jsVerify metricsDatadog Setup
continuous-performance-monitor.shPerformance monitoringPerformance
test-datadog-logging.shTest loggingLogs
test-health-endpoints.shTest health checksHealth
validate-healthchecks.shValidate endpointsHealth
test-k8s-health-probes.shK8s health probesHealth
validate-postgres-monitoring.shValidate PostgreSQLHealth
security-monitoring.shSecurity monitoringSecurity
monitor-with-error-tracking.shError trackingSpecialized
setup-agentapi-monitoring.tsAgentAPI monitoringSpecialized
apply-ai-gateway-monitoring.tsAI Gateway monitoringSpecialized
setup-local-dev-with-monitoring.shLocal dev monitoringSpecialized

Complete mapping from standalone scripts to menu options:

Original ScriptMenu PathDescription
deploy-monitoring.shMonitoring > 1Deploy Datadog monitoring stack
setup-azure-openai-monitoring.shMonitoring > 2Setup Azure OpenAI monitoring
setup-aks-datadog-monitoring.shMonitoring > 3Setup AKS Datadog monitoring
setup-postgres-datadog-monitoring.shMonitoring > 4Setup PostgreSQL monitoring
check-datadog-dbmon-metrics.shMonitoring > 5Check Datadog DBM metrics
verify-datadog-metrics.jsMonitoring > 6Verify Datadog metrics
continuous-performance-monitor.shMonitoring > 10Continuous performance monitoring
test-datadog-logging.shMonitoring > 14Test Datadog logging
validate-monitoring.jsMonitoring > 18Validate monitoring setup
test-monitoring.shMonitoring > 18Test monitoring integration
test-health-endpoints.shMonitoring > 20Check services health
validate-healthchecks.shMonitoring > 21Validate health endpoints
test-k8s-health-probes.shMonitoring > 22Test K8s health probes
validate-postgres-monitoring.shMonitoring > 23Validate PostgreSQL monitoring
security-monitoring.shMonitoring > 24Start security monitoring
monitor-with-error-tracking.shMonitoring > 25Monitor with error tracking
setup-agentapi-monitoring.tsMonitoring > 26Setup AgentAPI monitoring
apply-ai-gateway-monitoring.tsMonitoring > 27Apply AI Gateway monitoring
setup-local-dev-with-monitoring.shMonitoring > 28Deploy local dev with monitoring
Original ScriptMenu PathDescription
security-monitoring.shSecurity > 11Start security monitoring
scan-vulnerabilities.shSecurity > 1Scan dependencies
audit-security.shSecurity > 8Security audit
Original ScriptMenu PathDescription
migrate-database.shDatabase > 1Run migrations
seed-database.shDatabase > 5Seed database
backup-database.shDatabase > 8Backup database
restore-database.shDatabase > 9Restore database
Original ScriptMenu PathDescription
deploy-production.shDeploy > 3Deploy to production
deploy-aks.shDeploy > 5Deploy to AKS
deploy-flyio.shDeploy > 6Deploy to Fly.io
rollback-deployment.shDeploy > 11Rollback deployment
Terminal window
# Database
DATABASE_URL="postgresql://user:pass@host:5432/db"
# Datadog (at least one API key required for monitoring)
DD_API_KEY="your_datadog_api_key"
# or
DATADOG_API_KEY="your_datadog_api_key"
# Application
NODE_ENV="development"
Terminal window
# Datadog Configuration
DD_SERVICE="vibecode-webgui"
DD_ENV="production"
DD_VERSION="1.0.0"
DD_SITE="datadoghq.com"
DD_LLMOBS_ENABLED="true"
# Azure Configuration
AZURE_CLIENT_ID="..."
AZURE_CLIENT_SECRET="..."
AZURE_TENANT_ID="..."
AZURE_SUBSCRIPTION_ID="..."
# Deployment Configuration
ENVIRONMENT="production"
DEPLOY_METHOD="kubernetes"
NAMESPACE="vibecode"
# Security Monitoring
SECURITY_MONITORING_INTERVAL="300"
SECURITY_ALERT_WEBHOOK="https://..."
MAX_LOG_SIZE="104857600"

Primary environment configuration:

Terminal window
# Created automatically by install script
# Copy from env.development.example
DATABASE_URL=postgresql://...
DD_API_KEY=...
NEXT_PUBLIC_API_URL=...

CLI-specific configuration:

Terminal window
# Optional: Create for custom CLI settings
# Default deployment method
export DEFAULT_DEPLOY_METHOD="kubernetes"
# Default monitoring interval
export DEFAULT_MONITOR_INTERVAL=60
# Custom scripts directory
export CUSTOM_SCRIPTS_DIR="/path/to/custom/scripts"
Terminal window
# 1. Install CLI
bash scripts/vibecode-cli/install.sh
# 2. Configure environment
cp env.development.example .env.local
# Edit .env.local and add DD_API_KEY
# 3. Launch CLI
bash 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"
Terminal window
# Launch CLI
bash 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)
Terminal window
# Launch CLI
bash 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 Data
Terminal window
# Launch CLI
bash 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 Check
Terminal window
# Launch CLI
bash 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)

Issue: “Command not found: vibecode-cli”

Section titled “Issue: “Command not found: vibecode-cli””

Solution:

Terminal window
# Use full path
bash /path/to/vibecode-webgui/scripts/vibecode-cli.sh
# Or add to PATH
export 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:

Terminal window
# Verify script exists
ls -la scripts/deploy-monitoring.sh
# Check execute permissions
chmod +x scripts/*.sh
# Verify PROJECT_ROOT is set correctly
echo $PROJECT_ROOT

Solution:

Terminal window
# Add to .env.local
echo "DD_API_KEY=your_api_key_here" >> .env.local
# Or export in shell
export DD_API_KEY="your_api_key_here"
# Or pass as parameter
bash scripts/deploy-monitoring.sh -d "your_api_key_here"

Solution:

Terminal window
# Disable colors
export NO_COLOR=1
# Use a terminal with color support
# macOS: iTerm2, Terminal.app
# Linux: gnome-terminal, konsole
# Windows: Windows Terminal, WSL

Issue: “Permission denied” when running scripts

Section titled “Issue: “Permission denied” when running scripts”

Solution:

Terminal window
# Add execute permissions
chmod +x scripts/vibecode-cli.sh
chmod +x scripts/vibecode-cli-lib/*.sh
# Or run with bash explicitly
bash scripts/vibecode-cli.sh

Solution:

Terminal window
# Check DATABASE_URL
echo $DATABASE_URL
# Test connection
psql $DATABASE_URL -c "SELECT 1"
# Verify PostgreSQL is running
docker ps | grep postgres
# or
pg_isready

Solution:

Terminal window
# Start Docker Desktop (macOS/Windows)
open -a Docker
# Or start Docker daemon (Linux)
sudo systemctl start docker
# Check Docker status
docker info
# Add user to docker group (Linux)
sudo usermod -aG docker $USER
# Then log out and back in

Enable debug output:

Terminal window
# Run with debug flag
DEBUG=1 bash scripts/vibecode-cli.sh
# Or set in environment
export DEBUG=1
bash scripts/vibecode-cli.sh
# See all commands being executed
set -x
bash scripts/vibecode-cli.sh

CLI logs are stored in:

Terminal window
# View CLI logs
tail -f .vibecode-cli/logs/cli.log
# View script logs
tail -f .vibecode-cli/logs/scripts.log
# View error logs
tail -f .vibecode-cli/logs/error.log
Terminal window
# In-CLI help
# Select: 7) Help & Documentation
# Script help
bash scripts/deploy-monitoring.sh --help
bash scripts/vibecode-cli/install.sh --help
# Read documentation
cat scripts/VIBECODE_CLI.md
cat scripts/vibecode-cli-lib/README.md

You can bypass the menu and run scripts directly:

Terminal window
# Deploy monitoring
bash scripts/deploy-monitoring.sh -d "$DD_API_KEY"
# Run tests
bash scripts/run-tests.sh --coverage
# Database migration
bash scripts/migrate-database.sh

Use different configurations for different environments:

Terminal window
# Development
ENV=development bash scripts/vibecode-cli.sh
# Staging
ENV=staging bash scripts/deploy-production.sh
# Production
ENV=production bash scripts/deploy-production.sh

Use the CLI in automated workflows:

#!/bin/bash
# deploy.sh - Automated deployment script
set -e
# Run security checks
bash scripts/vibecode-cli.sh << EOF
2
1
8
0
0
EOF
# Deploy
bash scripts/vibecode-cli.sh << EOF
4
3
yes
$VERSION
0
EOF
# Verify
bash scripts/vibecode-cli.sh << EOF
6
19
20
0
EOF

Add custom scripts to the CLI:

# 1. Create custom script
cat > scripts/custom-deploy.sh << 'EOF'
#!/bin/bash
echo "Running custom deployment..."
# Your custom logic here
EOF
# 2. Make executable
chmod +x scripts/custom-deploy.sh
# 3. Add to menu (edit scripts/vibecode-cli-lib/deploy-menu.sh)
# Add option and case statement
# 4. Test
bash scripts/vibecode-cli.sh

Run multiple operations in parallel:

Terminal window
# Run in background
bash scripts/deploy-monitoring.sh &
bash scripts/setup-postgres-monitoring.sh &
bash scripts/validate-monitoring.sh &
# Wait for all to complete
wait
echo "All monitoring setup complete"

Execute CLI commands on remote servers:

Terminal window
# SSH to remote server
ssh user@server 'bash -s' < scripts/deploy-monitoring.sh
# Or with parameters
ssh user@server "cd /app && DD_API_KEY=$DD_API_KEY bash scripts/deploy-monitoring.sh"
Terminal window
# Run validation checks before any deployment
# Monitoring > Validate Monitoring Setup
# Deployment > Validate Deployment
Terminal window
# Before major changes:
# Database > Backup Database
# VM > Create Snapshot
Terminal window
# Record baseline before and after changes
# Monitoring > Record Performance Baseline
# Make changes
# Monitoring > Record Performance Baseline
# Monitoring > Compare Performance Baselines
Terminal window
# Start security monitoring in production
# Security > Start Security Monitoring
# Configure webhook alerts
Terminal window
# Set up log review routine
# Monitoring > View Application Logs
# Monitoring > Search Logs
  • This Guide: scripts/VIBECODE_CLI.md
  • Library Docs: scripts/vibecode-cli-lib/README.md
  • Main README: README.md
  • API Docs: docs/
Terminal window
# CLI help
bash scripts/vibecode-cli.sh --help
# Script help
bash scripts/[script-name].sh --help
# In-menu help
# Select: 7) Help & Documentation
Terminal window
# Installation
bash scripts/vibecode-cli/install.sh
# Validation
bash scripts/vibecode-cli/validate-config.sh
# Launch CLI
bash scripts/vibecode-cli.sh
# Direct script execution
bash scripts/[script-name].sh [options]
# Debug mode
DEBUG=1 bash scripts/vibecode-cli.sh
# Uninstall
bash scripts/vibecode-cli/uninstall.sh

Version: 1.0.0 Last Updated: 2025-10-24 Maintainer: Vibecode Platform Team License: MIT