Utility Client is a versatile command-line tool designed to manage Utility Server’s operations, including configuration management, client onboarding, caching, logging, and system monitoring. It supports both standard CLI and an interactive shell mode.
$ wget https://github.com/utility-server/utility-client/raw/main/UtilityClient-Debin-amd64-latest.deb
$ sudo dpkg -i UtilityClient-Debin-amd64-latest.deb
Utility Client supports two modes:
Run commands prefixed with a dash (-) like:
$ utility-client -login
Enter by typing:
$ utility-client
You will see a prompt like:
֎ [CLIENT_ID] MODULE %
Run commands without the dash in this mode:
֎ demoClient default % login
$ utility-client -setConfig
Prompts for:
$ utility-client -printConfig
$ utility-client -reloadMyConf
$ utility-client -listClients
Lists all configured clients under the current session.
$ utility-client -loadClient=<LIST | CLIENT ID>
Loads configuration for a selected client.
$ utility-client -onboardClient
Starts the interactive onboarding process for new clients.
$ utility-client -assignNewPlan
Assigns a billing or usage plan to a selected client.
$ utility-client -purgeAllCache
Removes all cached data for the active client.
$ utility-client -purgeURLCache <URI | ./path/to/URLlist>
Purges cache for a specific URL or batch list.
$ utility-client -updateTTL=<TTL>
Sets TTL (time-to-live) for cached content. Value is in days.
$ utility-client -warmupCache [./path/to/URLlist]
Prefetches resources to warm up the cache.
$ utility-client -downloadLogReport
Downloads compressed logs for review.
$ utility-client -fetchLiveLogs
Streams live logs from Utility Server.
$ utility-client -activateAccount
Activates a user account using their registered email.
$ utility-client -login
Prompts user login with credential validation.
$ utility-client -logout
Ends the current session.
$ utility-client -resetPassword
Initiates password reset by sending email.
$ utility-client -pushAccessKey
$ utility-client -pushSecretKey
Pushes a new access or secret key for secured requests.
$ utility-client -rotateAccessKey
$ utility-client -rotateSecretKey
Replaces current keys with new ones.
$ utility-client -whitelistIPs <IPV4 IPV6 ...>
Adds IPs to the whitelist for client access.
$ utility-client -getStats=<MONTH>
Returns usage reports for a given month.
$ utility-client -showPlans
Lists all available plans and their limits.
$ utility-client -validateTxn=<transaction>
Validates a transaction ID from logs or API.
$ utility-client -whoami
Displays the current logged-in user identity.
$ utility-client -terminateSession
Closes all active sessions under this user.
$ utility-client -help
Prints help details.
$ utility-client -ver
Shows the Utility Client version installed.
sudo)$ sudo utility-client -update
Installs the latest version of Utility Client.
history
Shows previously executed commands.
clearHistory
Clears command history.
$ utility-client -myOrders
Displays confirmed service or billing orders.
$ utility-client -setActiveModule
Sets the currently focused module in interactive session.
$ utility-client -sitemap <add|update|flush|get|delete>
Manages sitemap functions for client websites.
| Command | Description |
|---|---|
| -activateAccount | Activate an account using email ID |
| -assignNewPlan | Assign a new plan to a client |
| -clearHistory | Clear all historical commands (interactive) |
| -downloadLogReport | Download log reports |
| -fetchLiveLogs | Fetch live system logs |
| -getStats= |
Retrieve monthly stats |
| -help | Show help info |
| -history | Show past commands (interactive only) |
| -listClients | List all configured clients |
| -loadClient=<…> | Load or switch to a specific client |
| -login | Login to your account |
| -logout | Logout from current session |
| -myOrders | View your confirmed orders |
| -onboardClient | Start onboarding a new client |
| -printConfig | Display current config |
| -purgeAllCache | Clear all cache data |
| -purgeURLCache | Purge specific URLs from cache |
| -pushAccessKey | Set a new access key |
| -pushSecretKey | Set a new secret key |
| -reloadMyConf | Reload cached configs |
| -resetPassword | Trigger password reset |
| -rotateAccessKey | Rotate access key |
| -rotateSecretKey | Rotate secret key |
| -setActiveModule | Set the active module |
| -setConfig | Configure Utility Client |
| -showPlans | List available plans |
| -sitemap | Manage sitemap (Add, Update, Flush, etc.) |
| -terminateSession | End all active sessions |
| -update | Update Utility Client (requires sudo) |
| -updateTTL= |
Set TTL for cached entries |
| -validateTxn= |
Validate a transaction ID |
| -ver | Display Utility Client version |
| -warmupCache | Prefetch & warm cache |
| -whitelistIPs | Whitelist IPs for access |
| -whoami | Show current logged-in user |