For container-based usage (recommended), see the README.
If you have Go installed, you can run the CLI directly from GitHub without cloning:
# Show help
go run github.com/opendatahub-io/odh-cli/cmd@latest --help
# Show version
go run github.com/opendatahub-io/odh-cli/cmd@latest version
# Run lint command
go run github.com/opendatahub-io/odh-cli/cmd@latest lint --target-version 3.3.0Note: Replace
@latestwith@v1.2.3to run a specific version, or@mainfor the latest development version.
Token Authentication:
go run github.com/opendatahub-io/odh-cli/cmd@latest \
lint \
--target-version 3.3.0 \
--token=sha256~xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx \
--server=https://api.my-cluster.p3.openshiftapps.com:6443Available commands:
lint- Validate cluster configuration and assess upgrade readinessversion- Display CLI version information
Install the kubectl-odh binary to your PATH:
# Download from releases
# Place in PATH as kubectl-odh
# Use with kubectl
kubectl odh lint --target-version 3.3.0
kubectl odh version