> ## Documentation Index
> Fetch the complete documentation index at: https://www.1password.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Install 1Password CLI on a server

There are several different ways to install 1Password CLI on a server.

To install [1Password CLI](https://app-updates.agilebits.com/product_history/CLI2) on a Linux `amd64` host, you can use this one-line command:

```shell theme={null}
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
```

To install with Docker, you can use the [1Password CLI 2 Docker image](https://hub.docker.com/r/1password/op/tags):

```shell theme={null}
docker pull 1password/op:2
```

If you want to add the CLI installation to your Dockerfile, then add this line:

```docker Dockerfile theme={null}
COPY --from=1password/op:2 /usr/local/bin/op /usr/local/bin/op
```

## Learn more

* [Install 1Password CLI on your machine](/cli/get-started/#step-1-install-1password-cli)
* [Developer quickstart](/get-started/developer-quickstart)
