You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks up an environment variable for use in GPTScript tools
7
+
8
+
```
9
+
gptscript getenv [flags] KEY [DEFAULT]
10
+
```
11
+
12
+
### Options
13
+
14
+
```
15
+
-h, --help help for getenv
16
+
```
17
+
18
+
### Options inherited from parent commands
19
+
20
+
```
21
+
--cache-dir string Directory to store cache (default: $XDG_CACHE_HOME/gptscript) ($GPTSCRIPT_CACHE_DIR)
22
+
-C, --chdir string Change current working directory ($GPTSCRIPT_CHDIR)
23
+
--color Use color in output (default true) ($GPTSCRIPT_COLOR)
24
+
--config string Path to GPTScript config file ($GPTSCRIPT_CONFIG)
25
+
--confirm Prompt before running potentially dangerous commands ($GPTSCRIPT_CONFIRM)
26
+
--credential-context string Context name in which to store credentials ($GPTSCRIPT_CREDENTIAL_CONTEXT) (default "default")
27
+
--credential-override strings Credentials to override (ex: --credential-override github.com/example/cred-tool:API_TOKEN=1234) ($GPTSCRIPT_CREDENTIAL_OVERRIDE)
28
+
--debug Enable debug logging ($GPTSCRIPT_DEBUG)
29
+
--debug-messages Enable logging of chat completion calls ($GPTSCRIPT_DEBUG_MESSAGES)
30
+
--default-model string Default LLM model to use ($GPTSCRIPT_DEFAULT_MODEL) (default "gpt-4o")
31
+
--default-model-provider string Default LLM model provider to use, this will override OpenAI settings ($GPTSCRIPT_DEFAULT_MODEL_PROVIDER)
32
+
--disable-cache Disable caching of LLM API responses ($GPTSCRIPT_DISABLE_CACHE)
33
+
--dump-state string Dump the internal execution state to a file ($GPTSCRIPT_DUMP_STATE)
34
+
--events-stream-to string Stream events to this location, could be a file descriptor/handle (e.g. fd://2), filename, or named pipe (e.g. \\.\pipe\my-pipe) ($GPTSCRIPT_EVENTS_STREAM_TO)
35
+
-f, --input string Read input from a file ("-" for stdin) ($GPTSCRIPT_INPUT_FILE)
36
+
--no-trunc Do not truncate long log messages ($GPTSCRIPT_NO_TRUNC)
37
+
--openai-api-key string OpenAI API KEY ($OPENAI_API_KEY)
38
+
--openai-base-url string OpenAI base URL ($OPENAI_BASE_URL)
39
+
--openai-org-id string OpenAI organization ID ($OPENAI_ORG_ID)
40
+
-o, --output string Save output to a file, or - for stdout ($GPTSCRIPT_OUTPUT)
41
+
-q, --quiet No output logging (set --quiet=false to force on even when there is no TTY) ($GPTSCRIPT_QUIET)
42
+
--workspace string Directory to use for the workspace, if specified it will not be deleted on exit ($GPTSCRIPT_WORKSPACE)
0 commit comments