loxicmd is a powerful command-line interface (CLI) tool for managing and interacting with loxilb — a cloud-native, eBPF-based load balancer. It provides comprehensive control over your load balancing infrastructure, enabling configuration and monitoring from the terminal.
Load Balancer Management
- Create, delete, and retrieve service-type external load balancers
- Support for multiple load balancing algorithms and protocols
Network Monitoring
- Port/interface dump inspection for loxilb and Docker containers
- Real-time connection tracking (TCP/UDP/ICMP/SCTP)
- Network neighbor and route management
Advanced Configuration
- QoS policy management
- VLAN and VXLAN configuration
- Firewall rule management
- BGP neighbor configuration
- Session management and monitoring
Infrastructure Management
- BFD (Bidirectional Forwarding Detection) support
- Mirror configuration for traffic analysis
- Endpoint and IP address management
- Go 1.19 or later
- Make utility
-
Clone the repository
git clone https://github.com/loxilb-io/loxicmd.git cd loxicmd
-
Install dependencies
go get .
-
Build the binary
make
-
Verify installation
./loxicmd version
Download the latest release from the releases page and add it to your PATH.
-
List all load balancers
./loxicmd get lb
-
Create a new load balancer
./loxicmd create lb 192.168.0.200 --tcp=80:32015 --endpoints=10.212.0.1:1,10.212.0.2:1,10.212.0.3:1
-
Delete a load balancer
./loxicmd delete lb 192.168.1.100 --tcp=80
Get results in various formats for automation or readability, such as json
or wide
:
./loxicmd get lb --output=json
./loxicmd get lb --output=wide
./loxicmd get lb -o json
./loxicmd get lb -o wide
Flag | Short | Description | Example |
---|---|---|---|
--server |
-s |
loxilb API server address | -s 192.168.1.10 |
--port |
-p |
loxilb API server port | -p 8080 |
--output |
-o |
Output format (json, yaml, table) | -o json |
--help |
-h |
Show help information | -h |
For more detailed command descriptions and examples, please refer to the documentation in loxilbdocs.
Get comprehensive help for any command:
# General help
./loxicmd help
# Command-specific help
./loxicmd help create lb
./loxicmd get lb --help
We welcome contributions! Please see CONTRIBUTING.md for guidelines on how to contribute to this project.
This project is licensed under the terms specified in the LICENSE file.
- loxilb - The main loxilb load balancer