Netlify CLI


Getting Started

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

Installation

Lets get rolling with the Netlify CLI.

  1. Install the CLI globally

    npm install netlify-cli -g
    

Important: When using the CLI in a CI environment we recommend installing it locally. See more here.

  1. Login to your Netlify Account

    netlify login
    

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

  2. 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