docs: mention dotenv support in Quickstart (#262)
Add a note in Quickstart that you can drop your API key into a `.env`
file
(since dotenv support was introduced in 40266be #122).
✅ Ran `npm test && npm run lint && npm run typecheck` locally
I have read the CLA Document and I hereby sign the CLA
Signed-off-by: Dan Lewis <dglewi@gmail.com>
This commit is contained in:
parent
f3d085aaf8
commit
603def0c7a
1 changed files with 7 additions and 1 deletions
|
|
@ -67,7 +67,13 @@ Next, set your OpenAI API key as an environment variable:
|
|||
export OPENAI_API_KEY="your-api-key-here"
|
||||
```
|
||||
|
||||
> **Note:** This command sets the key only for your current terminal session. To make it permanent, add the `export` line to your shell's configuration file (e.g., `~/.zshrc`).
|
||||
> **Note:** This command sets the key only for your current terminal session. To make it permanent, add the `export` line to your shell's configuration file (e.g., `~/.zshrc`).
|
||||
>
|
||||
> **Tip:** You can also place your API key into a `.env` file at the root of your project:
|
||||
> ```env
|
||||
> OPENAI_API_KEY=your-api-key-here
|
||||
> ```
|
||||
> The CLI will automatically load variables from `.env` (via `dotenv/config`).
|
||||
|
||||
Run interactively:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue