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

# Configuration

Configuration options for the Release CLI

By default, the Release CLI configuration file is stored at `$HOME/.release.yaml`.

You can override the default configuration in two ways:

1. Set the `RELEASE_CONFIG` environment variable to the file path containing your configuration.
2. Provide the path to your configuration file with the `--config` flag as part of a command.

## Settings

The configuration file contains the following settings fields, which will be used globally unless overridden:

* `account` (optional): The name or ID of the default Release account.
* `app` (optional): The name or ID of the default Release app.

If you would like to avoid specifying the `--account` flag on each `release` command, update your `$HOME/.release.yaml` with the following:

```jsx
account: YOUR_ACCOUNT_NAME
```

## Environment variables

You can optionally override any setting using environment variables following the `RELEASE_<KEY>` naming convention. For example, to override `account`, set `RELEASE_ACCOUNT=MyAccount`.

## Authentication

To authenticate the Release CLI from a non-interactive environment such as a CI system or for programmatic use:

1. Install and authenticate the Release CLI interactively from your local machine using `release auth login`.
2. Copy the values for `login` and `token` from the Release config file at `~/.release.yaml`
3. Set the environment variables `RELEASE_LOGIN` and `RELEASE_TOKEN` to the corresponding values from the config file.

Note it is not necessary to invoke `release auth login` if those environment variables are set.


---

# 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.release.com/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.
