Skip to main content

Installing the Octez client

You can install the Octez client directly on your computer or use a Docker image that has the most recent version of the Octez tools installed.

Installing the Octez client locally​

You can install the Octez client on your computer by using your package manager. Then, initialize it to use the RPC node of your choice:

  1. Install the client:

    • For MacOS, run these commands:

      brew tap serokell/tezos-packaging-stable https://github.com/serokell/tezos-packaging-stable.git
      brew install tezos-client
    • For Ubuntu, Windows WSL, and Linux distributions that use apt, run these commands:

      export distribution=debian
      export release=bookworm
      sudo apt-get update
      sudo apt-get install -y gpg curl
      curl -s "https://packages.nomadic-labs.com/$distribution/octez.asc" | sudo gpg --dearmor -o /etc/apt/keyrings/octez.gpg
      echo "deb [signed-by=/etc/apt/keyrings/octez.gpg] https://packages.nomadic-labs.com/$distribution $release main" | tee /etc/apt/sources.list.d/octez.list
      sudo apt-get update
      sudo apt-get install -y octez-client

      The supported distributions are listed in the Octez documentation at https://octez.tezos.com/docs/introduction/howtoget.html#ubuntu-and-debian-octez-packages.

    • For Fedora and Linux distributions that use dnf, run these commands:

      export distribution=fedora
      export release=39
      dnf -y update
      dnf -y install dnf-plugins-core
      dnf -y config-manager --add-repo "https://packages.nomadic-labs.com/$distribution/dists/$release/"
      rpm --import "https://packages.nomadic-labs.com/$distribution/octez.asc"

      dnf -y install octez-client

    For more local installation options, see Installing Octez in the Octez documentation.

  2. Verify that the Octez client is installed by running this command:

    octez-client --version

    If you see a message with the version of Octez that you have installed, the Octez client is installed correctly. For help on Octez, run octez-client --help or see the Octez documentation.

  3. Initialize the client's configuration file by running this command:

    octez-client config init

    This command creates a default configuration file in the location $HOME/.tezos-client/config.

  4. Set the RPC node to use:

    1. Get the URL of a public RPC node or a private node that you have access to. For example, you can get the URL of a testnet node from https://teztnets.com/, such as https://rpc.shadownet.teztnets.com for Shadownet.

    2. Set your Octez client to use this node by running this command on the command line, replacing the Shadownet URL with the URL that you copied:

      octez-client --endpoint https://rpc.shadownet.teztnets.com config update

      If you are using a testnet, Octez shows a warning that you are not using Mainnet. You can hide this message by setting the TEZOS_CLIENT_UNSAFE_DISABLE_DISCLAIMER environment variable to "YES".

    3. Verify that you are using the correct RPC URL by running this command:

      octez-client config show

      The response from Octez includes the URL of the RPC node that you are using.

For a full list of Octez client commands, run octez-client man.

Troubleshooting​

The error Unrecognized command can mean that you typed a command incorrectly, but it can also mean that the client is not connected to an RPC node. Try using a different RPC node by passing its URL to the config update command as shown above.

Using the Octez client in the Tezos Docker image​

The Tezos Docker image contains the latest version of the Octez client and the other Octez tools. To start a container from this image, run this command:

docker run -it --rm --entrypoint /bin/sh --name octez-container tezos/tezos:latest

You can verify that the Octez client is available in the container by running this command:

octez-client --version

Then set the RPC node for the client as described above.

For more information about using the Docker image, see Using Docker images in the Octez documentation.