Skip to content

CLI Overview

stronghold is the command-line interface for managing the transparent proxy, wallet, and account. It handles everything from initial setup to day-to-day proxy control and wallet management.

Command Reference

CommandDescriptionRoot Required
stronghold doctorVerify system requirementsNo
stronghold initInitialize and configure walletYes
stronghold enableStart proxy and enable interceptionYes
stronghold disableStop proxy and restore direct accessYes
stronghold statusDisplay proxy status and statisticsNo
stronghold healthCheck API and RPC healthNo
stronghold logsView proxy logsNo
stronghold account balanceDisplay current account balanceNo
stronghold account depositDisplay deposit optionsNo
stronghold wallet listList configured wallet addressesNo
stronghold wallet balanceDisplay per-chain wallet balancesNo
stronghold wallet exportExport private keys for backupNo
stronghold wallet replace <chain>Replace wallet by chainNo
stronghold wallet linkRegister wallets with serverNo
stronghold config get [key]Display configurationNo
stronghold config set <key> <value>Update configurationNo
stronghold uninstallRemove Stronghold from systemYes

Commands Without Dedicated Pages

logs

View proxy logs. By default, shows the last 100 lines.

Terminal window
stronghold logs
stronghold logs --follow
stronghold logs --lines 50
FlagTypeDefaultDescription
--follow, -fboolfalseFollow log output in real time (like tail -f)
--lines, -nint100Number of lines to show

uninstall

Remove Stronghold from the system. Stops the proxy, removes firewall rules, the system service, and binaries. By default, configuration files are preserved.

Terminal window
sudo stronghold uninstall
sudo stronghold uninstall --preserve-config=false
FlagTypeDefaultDescription
--preserve-config, -pbooltruePreserve configuration files (wallet keys remain in OS keyring regardless)

Global Flags

FlagDescription
--versionShow version information

Prerequisites

Most commands require a configured account. Run stronghold init first to set up your account, wallet, and proxy. Use stronghold doctor before init to verify that your system meets all requirements.