Before installing Lightdash CLI, you need to have NodeJS/NPM installed on your machine. To check that, run the following command in your terminal:

node -v; npm -v;
# it should print something like:
# v20.8.0
# 8.15.0

Run the following on your terminal to install the Lightdash CLI.

npm install -g @lightdash/cli

If you get an npm ERR! code EACCES error while installing the Lightdash CLI, follow this guide to resolve it.

Once you’ve installed the CLI tool, you’ll want to authenticate it

Check out the guide on authenticating your CLI tool (login and setup an active project).