Skip to content

Commit b787217

Browse files
Update ToolHive reference docs for v0.6.11 (#350)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 30eecc6 commit b787217

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

docs/toolhive/reference/cli/thv_config_set-build-env.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
2732
Common 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

3439
Examples:
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

Comments
 (0)