Installation

Install on Mac

Install using Homebrew

If you are using Mac, you can install the Yext CLI using Homebrew . If you don’t already have Homebrew installed, follow the installation instructions on the Homebrew site first. Then, you can run the following command to install the Yext CLI on your machine:

brew install yext/tap/yext

If the Yext CLI is already installed, you can upgrade your version with the following command:

brew upgrade yext


Debugging on a Mac

If you run into problems installing or running the CLI, look through the following debugging steps:

  1. Make sure which yext outputs /usr/local/bin/yext. If not, run the following command and then open up a new bash shell before running the CLI again.

    rm -f <output of "which yext"> 
  2. Make sure there is no alias for yext with alias yext.

  3. Run brew untap yext/tap and then brew install yext/tap/yext.


Install on Windows

Install with MSI Installer

If you are using a Windows machine, we recommend installing with MSI Installer.

  1. Download the Yext CLI MSI installer for Windows: https://yext-cli-pub.s3.amazonaws.com/cli/windows/yext.msi

  2. Run the downloaded MSI installer and follow the on-screen instructions. By default, the Yext CLI installs to C:\Windows\system32

  3. Open Powershell and run yext init to get started.


Install on Linux

If you are using Linux, The Yext CLI can be installed via wget.

  1. Download the file: wget https://yext-cli-pub.s3.amazonaws.com/cli/linux/yext.
  2. Put into path: sudo mv yext /usr/local/bin.
  3. Make it executable: chmod +x /usr/local/bin/yext.


Download the Latest Executable

You can download the latest executable directly here:


Enable Autocompletion (bash/zsh/powershell only)

Enabling autocompletion in the CLI will allow you to partially type a command and then press the tab key to fill in the rest of the command. If you installed the Yext CLI using brew, this should happen automatically.

To enable autocompletion for the Yext CLI, follow the instructions generated by $ yext completion –help or the instructions found in our CLI reference for yext completion .

Feedback