Skip to content

Latest commit

Β 

History

History
104 lines (79 loc) Β· 2.25 KB

File metadata and controls

104 lines (79 loc) Β· 2.25 KB

Quick Commands Cheat Sheet

πŸš€ Installation

# Install aliases (one time)
cd ~/Docker/message-relay
./install-aliases.sh
source ~/.zshrc

⚑ Most Used Commands

relay-help           # πŸ“– Show all commands
relay-status         # βœ… Is it running?
relay-logs           # πŸ“‹ Watch logs (Ctrl+C to stop)
relay-restart        # πŸ”„ Restart service
relay-test           # πŸ§ͺ Send test message

πŸ”§ Service Control

relay-start          # ▢️  Start
relay-stop           # ⏹️  Stop  
relay-restart        # πŸ”„ Restart
relay-status         # ❓ Check status
relay-full-status    # πŸ“Š Detailed status

πŸ“‹ Logs

relay-logs           # πŸ‘οΈ  Watch logs live
relay-errors         # ❌ Watch errors
relay-logs-last      # πŸ“„ Last 50 lines
relay-logs-color     # 🎨 Colored logs
relay-logs-clear     # πŸ—‘οΈ  Clear all logs
relay-search error   # πŸ” Search logs

πŸ§ͺ Testing

relay-test                           # Quick test
relay-health                         # Check /health
relay-send '+1234567890' 'Hello!'   # Send custom message

ℹ️ Information

relay-info           # πŸ“± Service summary
relay-full-status    # πŸ“Š Complete report
relay-logs-size      # πŸ“ Log file sizes

πŸ“ Navigation

relay-cd             # Go to project
relay-logs-cd        # Go to logs folder

πŸ’‘ Examples

# Watch logs in one terminal, test in another
relay-logs           # Terminal 1
relay-test           # Terminal 2

# Debug issues
relay-full-status    # See what's wrong
relay-search error   # Find errors
relay-restart        # Try restarting

# Clean up
relay-logs-size      # Check size
relay-logs-clear     # Clear if too big

# Send custom message
relay-send '+1234567890' 'Hello World!'

πŸ”— Combining Commands

relay-restart && relay-logs              # Restart and watch
relay-test && sleep 2 && relay-logs-last # Test and see result
relay-logs | grep "Message sent"         # Filter logs

πŸ“– More Help

relay-help                    # All commands with examples
cat ALIASES_REFERENCE.md      # Complete documentation
cat AUTOSTART_GUIDE.md        # Full setup guide

Print this and keep it by your desk! πŸ“„