Octeth CLI Tool
The Octeth CLI tool helps you manage your Octeth installation from the command line. You'll find it at /opt/octeth/cli/octeth.sh on your server. This tool gives you control over containers, processes, logs, and other system operations.
All commands follow this pattern:
/opt/octeth/cli/octeth.sh <command>TIP
You can run /opt/octeth/cli/octeth.sh help at any time to see a complete list of available commands.
Docker Container Management
These commands control the main Octeth containers that run your email marketing platform.
Starting Octeth containers:
/opt/octeth/cli/octeth.sh docker:upThis starts all Octeth containers. Use this command when you first set up Octeth or after stopping the containers.
Stopping Octeth containers:
/opt/octeth/cli/octeth.sh docker:downThis stops and removes all Octeth containers. Your data remains safe in Docker volumes.
Checking container status:
/opt/octeth/cli/octeth.sh docker:statusThis shows you which containers are running and their current state. Use this to verify everything is working properly.
Restarting containers:
/opt/octeth/cli/octeth.sh docker:restartThis restarts all Octeth containers. Use this when you need to apply configuration changes.
Backend Process Management
Backend processes handle important tasks like sending emails and processing campaigns. These commands help you manage them.
Starting backend processes:
/opt/octeth/cli/octeth.sh backend:startThis starts all background workers that process your email campaigns and handle automation. Run this after starting Docker containers.
Stopping backend processes:
/opt/octeth/cli/octeth.sh backend:stopThis stops all background workers. Use this when you need to perform maintenance or updates.
Checking backend status:
/opt/octeth/cli/octeth.sh backend:statusThis shows you which background processes are running. Use this to verify your email campaigns are being processed.
Restarting backend processes:
/opt/octeth/cli/octeth.sh backend:restartThis restarts all background workers. Use this when processes aren't responding or after configuration changes.
Send Engine Management
The send engine handles the actual delivery of your emails. You can scale it up or down based on your sending volume.
Starting the send engine:
/opt/octeth/cli/octeth.sh sendengine:startThis starts one send engine instance. The send engine connects to your SMTP servers and delivers emails.
Scaling the send engine:
/opt/octeth/cli/octeth.sh sendengine:scale 5This adjusts the number of send engine instances. Increase this number when sending large campaigns to speed up delivery.
Checking send engine status:
/opt/octeth/cli/octeth.sh sendengine:statusThis shows how many send engine instances are running and their current state.
Viewing send engine logs:
/opt/octeth/cli/octeth.sh sendengine:logs -fThis displays live logs from the send engine. Use this to monitor email delivery in real-time.
TIP
Start with one send engine instance and scale up only when needed. Each instance uses additional server resources.
Log Management
Logs help you understand what's happening in your Octeth system and troubleshoot issues.
Viewing live logs:
/opt/octeth/cli/octeth.sh logs:tailThis displays live error logs from Octeth. The logs update automatically as new entries appear.
Clearing log files:
/opt/octeth/cli/octeth.sh logs:resetThis clears all error log files. Use this to start fresh when troubleshooting or after resolving issues.
Creating a log snapshot:
/opt/octeth/cli/octeth.sh logs:snapshotThis creates a backup of all current log files. Use this before clearing logs or when you need to share logs with support.
Checking log file sizes:
/opt/octeth/cli/octeth.sh logs:sizeThis shows how much disk space your log files are using.
Fixing log file permissions:
/opt/octeth/cli/octeth.sh logs:fix-permissionsThis fixes permission issues that prevent Octeth from writing to log files. Run this if you see permission denied errors.
Environment and Configuration
These commands help you view and modify your Octeth configuration settings.
Viewing a configuration value:
/opt/octeth/cli/octeth.sh env:get MYSQL_HOSTThis displays the current value of a specific setting.
Changing a configuration value:
/opt/octeth/cli/octeth.sh env:set MYSQL_HOST 'localhost'This updates a configuration setting. Restart the affected containers after making changes.
Searching configuration:
/opt/octeth/cli/octeth.sh env:search MYSQLThis finds all configuration settings that match your search term.
Viewing system configuration:
/opt/octeth/cli/octeth.sh config:listThis displays all active configuration values loaded by Octeth.
WARNING
Always restart the appropriate containers after changing configuration values to apply your changes.
Database Operations
These commands help you manage your Octeth database and run maintenance tasks.
Running database updates:
/opt/octeth/cli/octeth.sh migrateThis applies database updates needed for new Octeth versions. Always run this after upgrading Octeth.
Opening the ClickHouse database:
/opt/octeth/cli/octeth.sh clickhouse:clientThis opens an interactive session with the ClickHouse database where Octeth stores analytics data.
Running a ClickHouse query:
/opt/octeth/cli/octeth.sh clickhouse:query "SHOW TABLES"This runs a single query against the ClickHouse database and displays the results.
Switching MySQL configuration:
/opt/octeth/cli/octeth.sh mysql:switch-config standardThis changes MySQL performance settings. Options include development, small, standard, and highperf. Choose based on your server's resources.
DANGER
Switching MySQL configuration will temporarily stop your database and all backend processes. Only do this during a maintenance window.
Viewing MySQL slow query log:
/opt/octeth/cli/octeth.sh mysql:slow-logThis displays slow database queries that may be affecting performance. By default, it shows the last 50 queries. Use this when diagnosing performance issues or troubleshooting slow campaign sending.
You can specify how many lines to display:
/opt/octeth/cli/octeth.sh mysql:slow-log --lines=100TIP
If you see queries taking several seconds to complete, contact Octeth support. They can help optimize your database performance.
Cache Management
Octeth uses caching to improve performance. These commands help you manage cached data.
Viewing cached data:
/opt/octeth/cli/octeth.sh cache:get 'subscriber_count_123'This displays the value stored in cache for a specific key.
Listing cache keys:
/opt/octeth/cli/octeth.sh cache:list 'subscriber_*'This shows all cache keys matching your pattern.
Removing cached data:
/opt/octeth/cli/octeth.sh cache:forget 'subscriber_count_123'This deletes a specific cached value. Octeth will recreate it when needed.
Clearing multiple cache entries:
/opt/octeth/cli/octeth.sh cache:flush 'subscriber_counts_*'This removes all cache entries matching your pattern. Use this carefully as it can temporarily slow down your system.
Viewing cache statistics:
/opt/octeth/cli/octeth.sh cache:statsThis shows information about your cache system including memory usage.
Installation and Setup
These commands help you install and configure Octeth.
Starting a fresh installation:
/opt/octeth/cli/octeth.sh install:startThis guides you through setting up a new Octeth installation. Only use this on a fresh server or after running install:reset.
Resetting your installation:
/opt/octeth/cli/octeth.sh install:resetThis removes all Octeth data and configuration, returning your server to a clean state.
DANGER
This command permanently deletes all your data, campaigns, subscribers, and settings. Use only when you want to start completely fresh.
Installing CLI tools globally:
/opt/octeth/cli/octeth.sh cli:installThis makes the Octeth CLI tool available from anywhere on your server. After running this, you can use octeth instead of /opt/octeth/cli/octeth.sh.
System Health and Testing
These commands help you verify that Octeth is working correctly.
Checking system health:
/opt/octeth/cli/octeth.sh health:checkThis runs a comprehensive check of all Octeth services and displays their status. Use this to verify everything is working properly.
Setting up the test database:
/opt/octeth/cli/octeth.sh test:setupThis prepares a test database for running automated tests. Only needed if you're testing new features or troubleshooting.
Running tests:
/opt/octeth/cli/octeth.sh test:run allThis runs all automated tests to verify Octeth functionality. Mainly used by support staff or when troubleshooting complex issues.
System Utilities
These commands perform maintenance tasks and fix common issues.
Fixing file permissions:
/opt/octeth/cli/octeth.sh permissions:fixThis corrects file and folder permissions that may prevent Octeth from working properly. Run this if you see permission errors.
Installing dependencies:
/opt/octeth/cli/octeth.sh composer:installThis installs or updates required software packages. Run this after upgrading Octeth or when instructed by support.
Regenerating authentication tokens:
/opt/octeth/cli/octeth.sh regenerate-auth-tokensThis fixes authentication issues where users can't log in. Use this if users report login problems after password changes.
TIP
Most day-to-day operations only require the backend:start, backend:stop, and backend:status commands. The other commands are typically used during setup, upgrades, or troubleshooting.

Help Portal