> ## 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.

# Update to the latest version of 1Password CLI

To make sure you're up to date with the latest features and security improvements, always use the latest version of 1Password CLI.

To check what version you currently have installed, use `op --version`.

## Download the latest version

There are two ways you can download the latest version for your platform and architecture:

* Visit our [release page](https://app-updates.agilebits.com/product_history/CLI2) and download the latest version of 1Password CLI.

* Use `op update` to download the latest version from the command line. Set the `--directory` flag to choose where to download the installer (defaults to `~/Downloads`) and confirm the download.

You can use `op update` without signing in.

After downloading the appropriate installer, follow the [installation instructions](/cli/get-started/#step-1-install-1password-cli) to finish the update.

## Update with a package manager

If you installed 1Password CLI with a package manager, use the following commands to update your installation.

<Tabs groupId="operating-systems">
  <Tab title="Mac">
    ```shell title="Brew" theme={null}
    brew upgrade --cask 1password-cli
    ```
  </Tab>

  <Tab title="Linux">
    <CodeGroup>
      <CodeBlock filename="Apt" language="shell" children={`sudo apt update && sudo apt install 1password-cli`} />

      <CodeBlock filename="Yum" language="shell" children={`sudo dnf check-update -y 1password-cli && sudo dnf install 1password-cli`} />

      <CodeBlock filename="Alpine" language="shell" children={`apk add --update-cache 1password-cli`} />
    </CodeGroup>
  </Tab>
</Tabs>
