mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-12 07:35:00 +00:00
Load .env from home, git, cwd, cmd line arg
This commit is contained in:
parent
8a0480a56d
commit
46374fb07a
5 changed files with 32 additions and 11 deletions
|
@ -12,12 +12,12 @@ your git repo.
|
|||
|
||||
{% include special-keys.md %}
|
||||
|
||||
Below is a sample of the file, which you
|
||||
{% include env-keys-tip.md %}
|
||||
|
||||
Below is a sample of the YAML config file, which you
|
||||
can also
|
||||
[download from GitHub](https://github.com/paul-gauthier/aider/blob/main/aider/website/assets/sample.aider.conf.yml).
|
||||
|
||||
{% include env-keys-tip.md %}
|
||||
|
||||
<!--[[[cog
|
||||
from aider.args import get_sample_yaml
|
||||
from pathlib import Path
|
||||
|
|
|
@ -13,9 +13,14 @@ in the `.env` file.
|
|||
|
||||
{% include special-keys.md %}
|
||||
|
||||
Aider will look for a `.env` file in the
|
||||
root of your git repo or in the current directory.
|
||||
You can give it an explicit file to load with the `--env-file <filename>` parameter.
|
||||
Aider will look for a `.env` file in these locations:
|
||||
|
||||
- Your home directory.
|
||||
- The root of your git repo.
|
||||
- The current directory.
|
||||
- As specified with the `--env-file <filename>` parameter.
|
||||
|
||||
If the files above exist, they will be loaded in that order. Files loaded last will take priority.
|
||||
|
||||
Below is a sample `.env` file, which you
|
||||
can also
|
||||
|
|
|
@ -14,7 +14,7 @@ The steps below are completely optional.
|
|||
|
||||
## Store your api keys
|
||||
|
||||
You can place your [api keys in a `.env` file](/docs/config/dotenv.html)
|
||||
You can [store your api keys in a .env file](/docs/config/dotenv.html)
|
||||
and they will be loaded automatically whenever you run aider.
|
||||
|
||||
## Enable Playwright
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue