Prerequisites

To install the Exponent CLI, you need to have the following prerequisites installed:

  • Python 3.10 or higher
  • pipx or pip

Install Python

Exponent requires Python version 3.10 or higher. To check if you already have Python installed, try the following command in your terminal:

python --version

To install the latest version of Python on macOS or Linux, we recommend using Homebrew:

brew install python

For more python installation options, see here.

Install pipx/pip

The Exponent CLI can be installed using either pipx or pip. We recommend using pipx as it allows Exponent to be installed in an isolated environment to avoid conflict with other Python packages you may be using for development.

Install pipx

To install pipx, run the following commands in your terminal:

Install pip

Most python installations come with pip pre-installed. If you don’t have it installed, you can install it using the following command:

Install Exponent

Once you have pipx/pip installed, you can install the Exponent CLI using the following command: