> For the complete documentation index, see [llms.txt](https://docs.verygoodsecurity.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.verygoodsecurity.com/vault/developer-tools/vgs-cli/configuration.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
