> For the complete documentation index, see [llms.txt](https://manual.dxable.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://manual.dxable.com/1password/how-1password-cli-detects-configuration-directories.md).

# 1Password CLIが設定ディレクトリーを検出する方法

### 1Password CLIが設定ディレクトリーを検出する方法 <a href="#ngdcozwvqtka" id="ngdcozwvqtka"></a>

1Password CLI設定ディレクトリーのデフォルトは次の通りです：

* ${XDG\_CONFIG\_HOME}が設定されている場合は、${XDG\_CONFIG\_HOME}/op
* ${XDG\_CONFIG\_HOME}が設定されていない場合、\~/.config/op

1Password CLI は、次の優先順位で読み取りまたは書き込みを行う設定ディレクトリーを検出します。

1. \--configフラグで指定されたディレクトリー　
2. 環境変数OP\_CONFIG\_DIRで設定されたディレクトリー
3. \~/.op（ホームディレクトリーを決定するため[go-homedir](https://github.com/mitchellh/go-homedir)をフォロー)
4. ${XDG\_CONFIG\_HOME}/.op
5. \~/.config/op（ホームディレクトリーを決定するため[go-homedir](https://github.com/mitchellh/go-homedir)をフォロー)
6. ${XDG\_CONFIG\_HOME}/op


---

# 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 dynamically by asking a question.

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

```
GET https://manual.dxable.com/1password/how-1password-cli-detects-configuration-directories.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.
