@@ -24,6 +24,11 @@ Environment variable names must:
2424- Contain only uppercase letters, numbers, and underscores
2525- Not be a reserved system variable (PATH, HOME, etc.)
2626
27+ You can set the value in three ways:
28+ 1 . Directly: thv config set-build-env KEY value
29+ 2 . From a ToolHive secret: thv config set-build-env KEY --from-secret secret-name
30+ 3 . From shell environment: thv config set-build-env KEY --from-env
31+
2732Common use cases:
2833- NPM_CONFIG_REGISTRY: Custom npm registry URL
2934- PIP_INDEX_URL: Custom PyPI index URL
@@ -33,18 +38,19 @@ Common use cases:
3338
3439Examples:
3540 thv config set-build-env NPM_CONFIG_REGISTRY https://npm.corp.example.com
36- thv config set-build-env PIP_INDEX_URL https://pypi.corp.example.com/simple
37- thv config set-build-env GOPROXY https://goproxy.corp.example.com
38- thv config set-build-env GOPRIVATE "github.com/myorg/* "
41+ thv config set-build-env GITHUB_TOKEN --from-secret github-pat
42+ thv config set-build-env ARTIFACTORY_API_KEY --from-env
3943
4044```
41- thv config set-build-env <KEY> < value> [flags]
45+ thv config set-build-env <KEY> [ value] [flags]
4246```
4347
4448### Options
4549
4650```
47- -h, --help help for set-build-env
51+ --from-env Read value from shell environment at build time
52+ --from-secret Read value from a ToolHive secret at build time (value argument becomes secret name)
53+ -h, --help help for set-build-env
4854```
4955
5056### Options inherited from parent commands
0 commit comments