Traffic4SEO CLI is a powerful command-line tool that allows you to execute automated SEO workflows on servers or personal computers without a graphical interface.
curl -fsSL https://traffic4seo.com/install-cli | bash
{warning} Linux Prerequisites:
- You must have
unzipinstalled to extract the browser.- On a headless Linux Server (VPS), you must install Chromium system dependencies to avoid browser crash on startup:
- Ubuntu / Debian:
sudo apt-get update && sudo apt-get install -y unzip libnss3 libnspr4 libatk1.0-0 libatk-bridge2.0-0 libcups2 libdrm2 libxkbcommon0 libxcomposite1 libxdamage1 libxrandr2 libgbm1 libasound2 libpango-1.0-0 libcairo2 libx11-xcb1 libxcb-dri3-0 libxshmfence1- CentOS / RHEL / Rocky Linux:
sudo dnf install -y unzip nss nspr atk at-spi2-atk cups-libs libdrm libxkbcommon libXcomposite libXdamage libXrandr mesa-libgbm alsa-lib pango cairo libX11-xcb libxcb libxshmfence
irm https://traffic4seo.com/install-cli.ps1 | iex
After installation, simply type a single command to start:
t4s-cli
If this is your first time running the CLI, the system will prompt you for an Access Token.
During the first run, if a suitable browser is not found, the CLI will ask:
"Do you want to download the Bundled Chromium? (y/n)"
Simply type y and the system will automatically download and configure everything.
The CLI supports several parameters to customize your session:
| Option | Alias | Default | Description |
|---|---|---|---|
--token |
-t |
Provide a Token directly (overwrites stored token) | |
--tabs |
30 |
Number of concurrent browser tabs (max 30) | |
--headless |
true |
Set to false to show browser windows (GUI only) |
|
--no-monitor |
Disable the TUI monitor interface for plain logs | ||
--proxy |
-p |
Proxy Connection URI string (http://user:pass@host:port) (recommended) |
|
--proxy-host |
-ph |
Proxy server Hostname or IP (legacy) | |
--proxy-port |
-pp |
Proxy server Port (legacy) | |
--proxy-type |
-pt |
http |
Proxy type (http, https, socks5) (legacy) |
--only-warmup |
Initialize browser and cookies then exit | ||
--force |
-f |
Force re-installation of bundled Chromium | |
--restart |
Restart CLI after specified minutes (must be a positive integer) |
Run CLI with 10 tabs and using a SOCKS5 Proxy via Proxy Connection URI:
t4s-cli --tabs=10 --proxy="socks5://user:[email protected]:1080"
To keep the CLI running after closing the terminal (on a VPS), it is recommended to use Screen:
screen -S t4st4s-cliCtrl + A then D to detach.screen -r t4sRemove the installation and configuration directories:
rm -rf ~/.t4s-cli
rm -rf ~/.config/t4s-cli
If you see the following warning during startup:
[AutoUpdater] ERROR: Update process seems to be stuck or failed!
Timeout waiting for lock directory: versions/vX.Y.Z.lock
This happens when a previous update process crashed or was terminated before it could finish and clean up its file locks.
Solution:
Ensure no other t4s-cli instances are currently running, then manually delete the lock directory:
Linux:
rm -rf ~/.t4s-cli/versions/*.lock
Windows (PowerShell):
Remove-Item -Path "$HOME\.t4s-cli\versions\*.lock" -Recurse -Force
Windows (CMD):
rmdir /s /q "%USERPROFILE%\.t4s-cli\versions\vX.Y.Z.lock"