Cup CLI
Learn how to use the Cup CLI tool to manage and monitor your Cloud-Cup reverse proxy server.
🧰 Cup CLI
Cup CLI is a command-line interface (CLI) tool designed to help you efficiently manage and interact with your Cloud-Cup reverse proxy instance. With Cup CLI, you can monitor server status, check configurations, test backends and routes, and apply changes seamlessly.
📦 Installation
To get started with the Cup CLI tool:
-
Download the Release Archive
Download the filecup-cli-0.1.0-alpha.1.tar.gz
attached to the v0.1.0-alpha.1 release. -
Extract the Archive
The CLI tool cup is now ready to use.
🚀 Usage
Here are the commands available with Cup CLI:
Check Application Status
Shows whether the Cloud-Cup application is running or not:
View Current Configuration
Displays the current configuration file the application is using:
Check Backend Health
Check All Backends
Verifies the health of all configured backend servers:
Check a Specific Backend
Checks the health of a backend server by specifying its address:
Replace <backend-address>
with the IP or hostname of the backend (e.g., 127.0.0.1:8081
).
Check Route Functionality
Checks if a specific route is functioning as expected:
Replace <route-name>
with the name of the route (e.g., *
or /example/*
).
Apply a New Configuration
Applies a new configuration file and performs a hot reload of the application:
Replace <file-path>
with the path to the new configuration file (e.g., configs/new-config.json
).
🛡️ Notes
- Dynamic Hot Reload: All changes made using cup apply are applied without restarting the server.
- Health Checks: Regularly use cup check to ensure backend servers and routes are healthy.