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.
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.
Login to your Netlify Account
netlify login
If you are new to Netlify, you can create an account here.
Initialize a new site
Inside of your sites
cwd
, run the following CLI command:netlify init
Link an existing site
If your site is already created inside of Netlify, you can run the link
command to connect the CLI to your site.
netlify link