Netlify CLI


Getting Started

This guide will walk you though installing and creating your first site with the CLI.

Installation

Lets get rolling with the Netlify CLI.

  1. Install the CLI locally

    npm install netlify-cli -g
    
  2. Login to your Netlify Account

    netlify login
    

    If you are new to Netlify, you can create an account here.

  1. Initialize a new site

    Inside of your sites cwd, run the following CLI command:

    netlify init
    

If your site is already created inside of Netlify, you can run the link command to connect the CLI to your site.

netlify link