Init
CLI initialization is a prerequisite for all other CLI operations. It performs several internal setup steps including gathering registry credentials, determining/asking current and latest Witboost versions, and downloading migration rules.
Usage
Usage: witboost-infra init [options]
Initializes CLI setup by setting the current Witboost version and fetch its product-values.yaml from registry
Options:
--registry-username <string> Private Helm registry username
--registry-password <string> Private Helm registry password
--current-version <string> (optional) Current Witboost version, can be skipped for automatic retrieval
--context <string> Kubernetes context, required if `version` is not set
--namespace <string> Kubernetes namespace, required if `version` is not set
--release-name <string> Helm release name of the Witboost deployment, required if `version` is not set
-h, --help display help for command
Example
./witboost-infra init --current-version "x.y.z" --registry-username git-username --registry-password your-password
Output
- Creates
.witboost-infra
directory with configuration files in the user's home directory - Fetches and caches default Witboost configuration files
- Downloads migration rules for all versions between the
current
version andlatest
available one - Updates
config.yaml
with current version, latest version, and available versions - Stores registry credentials in
tool-config.yaml
note
Private Helm registry username and password
refers to GitLab credentials with access to Witboost Helm and package registries. Reach out to the Witboost Team to get them.