This is a demo implementation of the AIBrix CLI.
# Clone the repository
git clone https://github.com/timerring/aibrixcli-demo.git
cd aibrixcli-demo
# Build the binary
go mod tidy
go build -o aibrix
# Move to a directory in your PATH (Optional)
sudo mv aibrix /usr/local/bin/
# Get help
./aibrix help
# Deploy a nginx workload as a test
./aibrix nginx --replicas 3
# List all workloads
./aibrix list
# Get logs for a workload
./aibrix logs --workload nginx --tail 100
# Delete a workload
./aibrix delete --type deployment --name nginx
# Deploy a workload using a template `templates/nginx.yaml`
./aibrix deploy --template nginx --param name=nginx \
--param replicas=3 \
--param image=nginx:1.19 \
--param port=8080
KUBECONFIG
: Path to your kubeconfig file (default: ~/.kube/config)KUBE_NAMESPACE
: Kubernetes namespace to use (default: default)