CLI Reference

Complete command-line reference for TarPit.pro, organized by category.

Quick Reference

tarpit-pro start -f          # Start in foreground with logs
tarpit-pro status            # Check honeypot status
tarpit-pro port list         # List active ports
tarpit-pro attacks list      # View recent attacks (paid)
tarpit-pro config show       # View current configuration
tarpit-pro bans list         # View banned IPs

Core Commands

CommandDescription
tarpit-pro startStart the honeypot (daemon mode)
tarpit-pro start -fStart in foreground with log output
tarpit-pro stopStop the running honeypot
tarpit-pro statusShow current honeypot status
tarpit-pro versionShow version, build date, and platform

Service Management

CommandDescription
tarpit-pro installInstall as system service (systemd/launchd)
tarpit-pro uninstallRemove the system service
tarpit-pro service startStart via system service manager
tarpit-pro service stopStop via system service manager
tarpit-pro service statusShow service status
tarpit-pro service restartRestart the service

Port Management

CommandDescription
tarpit-pro port listList all configured honeypot ports
tarpit-pro port add <port>Add a port to monitor
tarpit-pro port remove <port>Remove a port from monitoring
tarpit-pro port add-defaultsAdd all default honeypot ports
tarpit-pro port scanScan for available ports
tarpit-pro port profile <name>Apply a named port profile

Configuration

CommandDescription
tarpit-pro config showDisplay current configuration
tarpit-pro config set <key> <val>Set a configuration value
tarpit-pro config resetReset all configuration to defaults

License Management

CommandDescription
tarpit-pro activate <key>Activate a paid license
tarpit-pro deactivateRevert to free tier
tarpit-pro upgradeShow upgrade options and pricing
tarpit-pro init --code <code>Register agent with a registration code

Ban Management

CommandDescription
tarpit-pro bans listList currently banned IPs
tarpit-pro bans unban <ip>Unban a specific IP address

Attack Viewing

Starter
CommandDescription
tarpit-pro attacks listShow recent attacks (default: 20)
tarpit-pro attacks list -n 50Show last 50 attacks
tarpit-pro attacks list --port 22Filter by port
tarpit-pro attacks list --ip <ip>Filter by attacker IP
tarpit-pro attacks show <id>Show details for a specific attack
tarpit-pro attacks export -o <file>Export attacks (Pro tier)

Fleet Commands

Pro
CommandDescription
tarpit-pro fleet listList all agents in your fleet
tarpit-pro fleet list -vList with detailed information
tarpit-pro fleet bansShow fleet-wide bans
tarpit-pro fleet syncForce sync bans and rules from cloud
tarpit-pro fleet info <id>Show details for a specific agent
tarpit-pro fleet rules listList fleet firewall rules

Log Commands

CommandDescription
tarpit-pro logsShow recent log entries
tarpit-pro logs -n 100Show last 100 log lines
tarpit-pro logs -fFollow logs in real-time (tail -f)

AI Commands

Pro
CommandDescription
tarpit-pro ai statusAI engine status and statistics
tarpit-pro ai recommendShow AI ban recommendations
tarpit-pro ai ban <ip>Apply an AI-recommended ban

CVE Commands

Pro
CommandDescription
tarpit-pro cve listList detected CVEs from attacks
tarpit-pro cve updateUpdate the CVE signature database
tarpit-pro cve statusShow database version and match stats

Threat Commands

CommandDescription
tarpit-pro threats listList known threats and their scores
tarpit-pro threats syncSync threat intelligence from cloud
tarpit-pro threats statusShow threat database status

Global Flags

FlagDescription
-h, --helpShow help for any command
-v, --verboseEnable verbose output
--config <path>Path to config file
--no-colorDisable colored output
--jsonOutput in JSON format

Exit Codes

CodeMeaning
0Success
1General error
2Invalid arguments
3Permission denied
4Service not running