Commands Reference
witboost— CLI entrypoint commandwitboost governance— Witboost Computational Governance (WCG) allows for the creation, evolution, and enforcement of Governance Entities (policies or metrics) within development processes, ensuring governance is automated and not bypassable. This CLI allows interaction with WCG by evaluating a resource against Governance Entities.witboost builder— Commands to interact with the Witboost Builder module.witboost utils— Utility commands
witboost
Command-line interface to interact with the Witboost platform. This CLI provides commands for the Witboost Builder module, Witboost Computational Governance, and utility operations.
Usage
witboost [options] [command]
Options
| Flag | Required | Default | Description |
|---|---|---|---|
-V, --version | - | output the version number | |
-l, --log-level <level> | info | Set log level | |
-v, --verbose | - | Enable verbose output (same as --log-level debug) |
Additional help notes
Command-line interface to interact with the Witboost platform.
This CLI provides commands for the Witboost Builder module, Witboost
Computational Governance, and utility operations.
Run "witboost [command] --help" for details about a specific command.
For more details, see the official documentation: https://docs.witboost.com/p3_tech/p15_cli
witboost builder
Commands to interact with the Witboost Builder module.
Usage
witboost builder [options] [command]
witboost builder build-descriptor
Build a complete product descriptor or the descriptor for a specific component.
Usage
witboost builder build-descriptor (--entity-path <ENTITY_PATH> | --full --system-path <SYSTEM_PATH> --components-path <COMPONENTS_PATH>) --environment <ENVIRONMENT> [--include <PATH_OR_GLOB>]
Options
| Flag | Required | Default | Description |
|---|---|---|---|
--witboost-base-url <WITBOOST_BASE_URL> | ✅ | env/config | It is the URL you use to access Witboost e.g. https://witboost.my-example-company.com . Must be provided via either CLI, environment variable (WITBOOST_BASE_URL), or config file (key: "WITBOOST_BASE_URL") |
--token <TOKEN> | ✅ | env/config | User/Service Account Access Token to authenticate with the Witboost API. Must be provided via either CLI, environment variable (ACCOUNT_ACCESS_TOKEN), or config file (key: "ACCOUNT_ACCESS_TOKEN") |
--full | false | If specified, build full descriptors including all details | |
--entity-path <ENTITY_PATH> | - | Path to the entity (system or component) for which to build the descriptor (if --full is not used) | |
--system-path <SYSTEM_PATH> | - | Path to the folder containing the system files used to build the descriptor (if --full is used) | |
--components-path <COMPONENTS_PATH> | - | Path to the folder containing the component directories whose files are used to build the descriptor (if --full is used) | |
--include <PATH_OR_GLOB> | - | Additional file, folder, or glob pattern to include in the descriptor generation input. Repeat the option to include multiple entries. | |
--environment <ENVIRONMENT> | ✅ | - | Target environment for which to build the descriptor |
Additional help notes
Build a descriptor in YAML format from local system or component files.
Required inputs:
- Witboost base URL
- target environment
- either --entity-path, or --full with both --system-path and --components-path
Optional inputs:
- --include, to add extra local files, folders, or glob patterns
Notes:
- Only --witboost-base-url and --token can come from environment variables or config file (.witboost-cli/config.yaml). All other options must be provided via CLI.
- Authentication options are resolved with the following precedence: CLI arguments > environment variables > configuration file.
- By default the CLI uses the standard set of files required by Witboost for descriptor generation (catalog-info.yaml, parameters.yaml, etc.).
- Use --include when descriptor generation also needs extra local files or folders. One possible use case is when parameters.yaml declares refs to local files.
- Include patterns are resolved relative to --entity-path or, with --full, relative to --system-path and each component directory under --components-path.
Examples:
# 1. Build a single entity resource using options via CLI
witboost builder build-descriptor \
--witboost-base-url https://witboost.my-example-company.com \
--token $ACCOUNT_ACCESS_TOKEN \
--entity-path ./entity \
--environment production
# 2. Build a full resource using options via CLI
witboost builder build-descriptor \
--witboost-base-url https://witboost.my-example-company.com \
--token $ACCOUNT_ACCESS_TOKEN \
--full \
--system-path ./system \
--components-path ./components \
--environment production
# 3. Use environment variables (token, witboost-base-url)
export ACCOUNT_ACCESS_TOKEN=xxx
export WITBOOST_BASE_URL=https://witboost.my-example-company.com
witboost builder build-descriptor \
--entity-path ./entity \
--environment production
# 4. Add extra local files
witboost builder build-descriptor \
--witboost-base-url https://witboost.my-example-company.com \
--token $ACCOUNT_ACCESS_TOKEN \
--entity-path ./entity \
--environment production \
--include README.md \
--include docs \
--include 'resources/**/schema.yaml'
witboost governance
Witboost Computational Governance (WCG) allows for the creation, evolution, and enforcement of Governance Entities (policies or metrics) within development processes, ensuring governance is automated and not bypassable. This CLI allows interaction with WCG by evaluating a resource against Governance Entities.
Usage
witboost governance [options] [command]
Additional help notes
Witboost Computational Governance (WCG) allows for the creation, evolution, and
enforcement of Governance Entities (policies or metrics) within development
processes, ensuring governance is automated and not bypassable.
This CLI allows interaction with WCG by evaluating a resource against Governance
Entities.
Prerequisites:
- A resource type must be defined in Witboost.
- At least one Governance Entity must be registered in the Witboost Computational Governance.
For more details, see the official documentation: https://docs.witboost.com/docs/p3_tech/p11_managing_policies/p11_1_overview
witboost governance evaluate
Evaluate resource descriptors against registered Governance Entities.
Usage
witboost governance evaluate --base-url <BASE_URL> --witboost-base-url <WITBOOST_BASE_URL> --token <TOKEN> --env <ENV> --resource-type <RESOURCE_TYPE> --resource-id <RESOURCE_ID> --descriptor-file <INPUT_FILE> [options]
Options
| Flag | Required | Default | Description |
|---|---|---|---|
--base-url <BASE_URL> | ✅ | env/config | Base URL of the Witboost Computational Governance Platform. Must be provided via either CLI, environment variable (WCG_BASE_URL), or config file (key: "WCG_BASE_URL") |
--witboost-base-url <WITBOOST_BASE_URL> | ✅ | env/config | It is the URL you use to access Witboost e.g. https://witboost.my-example-company.com . Must be provided via either CLI, environment variable (WITBOOST_BASE_URL), or config file (key: "WITBOOST_BASE_URL") |
--token <TOKEN> | ✅ | env/config | User/Service Account Access Token to authenticate with the Witboost API. Must be provided via either CLI, environment variable (ACCOUNT_ACCESS_TOKEN), or config file (key: "ACCOUNT_ACCESS_TOKEN") |
--jwt-duration <JWT_DURATION> | - | (Optional) User/Service Account JWT duration in seconds | |
--env <ENV> | ✅ | - | Witboost environment in which the resource is evaluated |
--resource-type <RESOURCE_TYPE> | ✅ | - | Resource type of the resource to be evaluated |
--resource-id <RESOURCE_ID> |