Install Netlify CLI

To install Netlify CLI, make sure you have Node.js version 18.14.0 or later. Then, run this command in your terminal:

npm install netlify-cli -g

This installs Netlify CLI globally, so you can run netlify commands from any directory. You can check the version and find out some basic information about the tool with the following command:

netlify

To authenticate and obtain an access token using the command line, enter the following command from any directory:

netlify login

This will open a browser window, asking you to log in with Netlify and grant access to Netlify CLI.

netlify help netlify status : For account details