> 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/install-1password-cli-on-a-server.md).

# サーバーに1Password CLIをインストールする

### サーバーに1Password CLIをインストールする <a href="#zezu6nhrshzr" id="zezu6nhrshzr"></a>

1Password CLI をサーバーにインストールする方法はいくつかあります。

Linux amd64ホストに[1Password CLI](https://app-updates.agilebits.com/product_history/CLI2)をインストールするには、次のワンラインのコマンドを使います。

$ ARCH="amd64"; \\

OP\_VERSION="v$(curl <https://app-updates.agilebits.com/check/1/0/CLI2/en/2.0.0/N> -s | grep -Eo '\[0-9]+\\.\[0-9]+\\.\[0-9]+')"; \\

curl -sSfo op.zip \\

<https://cache.agilebits.com/dist/1P/op2/pkg/"$OP\\_VERSION"/op\\_linux\\_"$ARCH"\\_"$OP\\_VERSION".zip> \\

&& unzip -od /usr/local/bin/ op.zip \\

&& rm op.zip

[Dockerでインストールする場合は、 1Password CLI 2 Dockerイメージ](https://hub.docker.com/r/1password/op/tags)を利用できます。

$ docker pull 1password/op:2

CLIインストールをDockerfileに追加する場合は、次の行を追加します。

Dockerファイルの例：

COPY --from=1password/op:2 /usr/local/bin/op /usr/local/bin/op

### さらに詳しく知るには <a href="#vijbg5mwnhyu" id="vijbg5mwnhyu"></a>

* [1Password CLIをインストールする](https://developer.1password.com/docs/cli/get-started/#step-1-install-1password-cli)


---

# 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/install-1password-cli-on-a-server.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.
