# Configuration

You can save frequently used configuration settings in a file. By default, the file is located at `~/.vgs/config` on Linux or macOS, or at `C:\Users\USERNAME\.vgs\config` on Windows.

You may override this location by either setting an environment variable, `VGS_CONFIG_FILE`, or with a CLI option when invoking a command:

```bash
vgs login --config ./config
```

## Format

The CLI expects config files to be compatible with [ConfigObj](https://configobj.readthedocs.io/en/latest/configobj.html)

```bash
[login]
idp = ACgymeNXPo5CkQ5cZcmJvPQj
```

You may be familiar with this format if you've ever used the AWS CLI.

## Supported Settings

### Section: `login`

| Setting | Description                |
| ------- | -------------------------- |
| `idp`   | Custom IdP to log in with. |

## Configuration Settings and Precedence

Configuration sources for the VGS CLI take precedence in the following order:

1. **Command line options** – Explicitly specified options like `--idp` or `--vault`.
2. **Environment variables** – You can store values in your system's environment variables.
3. **Configuration file** – The CLI can read settings from a file.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.verygoodsecurity.com/vault/developer-tools/vgs-cli/configuration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
