# netlify-cli **Repository Path**: mirrors_pimterry/netlify-cli ## Basic Information - **Project Name**: netlify-cli - **Description**: Netlify command line tool - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-19 - **Last Updated**: 2026-02-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Netlify CLI [![npm version][npm-img]][npm] [![build status][azure-img]][azure] [![coverage][coverage-img]][coverage] [![dependencies][david-img]][david] [![downloads][dl-img]][dl] [![netlify-status][netlify-img]][netlify] Welcome to the Netlify CLI! The new 2.0 version was rebuilt from the ground up to help improve the site building experience. > ⚠️ **If you are looking for docs on [Netlify Dev](https://www.netlify.com/blog/2019/04/09/netlify-dev--our-entire-platform-right-on-your-laptop/)**, the `netlify-dev-plugin` repo was recently merged into this one. [See Netlify Dev Docs here](https://github.com/netlify/cli/blob/master/docs/netlify-dev.md). ## Table of Contents
Click to expand - [Installation](#installation) - [Usage](#usage) - [Documentation](#documentation) - [Commands](#commands) * [addons](#addons) * [api](#api) * [deploy](#deploy) * [dev](#dev) * [functions](#functions) * [init](#init) * [link](#link) * [login](#login) * [open](#open) * [sites](#sites) * [status](#status) * [switch](#switch) * [unlink](#unlink) * [watch](#watch) - [Contributing](#contributing) - [Development](#development) - [License](#license)
## Installation Netlify CLI requires [Node.js](https://nodejs.org) version 8 or above. To install, run the following command from any directory in your terminal: ```bash npm install netlify-cli -g ``` Alternatively you may also use Homebrew: `brew install netlify-cli` (thanks [@cglong](https://github.com/netlify/cli/issues/291)). ## Usage Installing the CLI globally provides access to the `netlify` command. ```sh-session netlify [command] # Run `help` for detailed information about CLI commands netlify [command] help ``` ## Documentation To learn how to log in to Netlify and start deploying sites, visit the [documentation on Netlify](https://www.netlify.com/docs/cli). For a full command reference, see the list below, or visit [cli.netlify.com](https://cli.netlify.com/). ## Commands ### [addons](/docs/commands/addons.md) (Beta) Manage Netlify Add-ons | Subcommand | description | |:--------------------------- |:-----| | [`addons:auth`](/docs/commands/addons.md#addonsauth) | Login to add-on provider | | [`addons:config`](/docs/commands/addons.md#addonsconfig) | Configure add-on settings | | [`addons:create`](/docs/commands/addons.md#addonscreate) | Add an add-on extension to your site | | [`addons:delete`](/docs/commands/addons.md#addonsdelete) | Remove an add-on extension to your site | | [`addons:list`](/docs/commands/addons.md#addonslist) | List currently installed add-ons for site | ### [api](/docs/commands/api.md) Run any Netlify API method ### [deploy](/docs/commands/deploy.md) Create a new deploy from the contents of a folder ### [dev](/docs/commands/dev.md) Local dev server | Subcommand | description | |:--------------------------- |:-----| | [`dev:exec`](/docs/commands/dev.md#devexec) | Exec command | ### [functions](/docs/commands/functions.md) Manage netlify functions | Subcommand | description | |:--------------------------- |:-----| | [`functions:build`](/docs/commands/functions.md#functionsbuild) | build functions locally | | [`functions:create`](/docs/commands/functions.md#functionscreate) | create a new function locally | | [`functions:invoke`](/docs/commands/functions.md#functionsinvoke) | trigger a function while in netlify dev with simulated data, good for testing function calls including Netlify's Event Triggered Functions | ### [init](/docs/commands/init.md) Configure continuous deployment for a new or existing site ### [link](/docs/commands/link.md) Link a local repo or project folder to an existing site on Netlify ### [login](/docs/commands/login.md) Login to your Netlify account ### [open](/docs/commands/open.md) Open settings for the site linked to the current folder | Subcommand | description | |:--------------------------- |:-----| | [`open:admin`](/docs/commands/open.md#openadmin) | Opens current site admin UI in Netlify | | [`open:site`](/docs/commands/open.md#opensite) | Opens current site url in browser | ### [sites](/docs/commands/sites.md) Handle various site operations | Subcommand | description | |:--------------------------- |:-----| | [`sites:create`](/docs/commands/sites.md#sitescreate) | Create an empty site (advanced) | | [`sites:delete`](/docs/commands/sites.md#sitesdelete) | Delete a site | | [`sites:list`](/docs/commands/sites.md#siteslist) | List all sites you have access to | ### [status](/docs/commands/status.md) Print status information | Subcommand | description | |:--------------------------- |:-----| | [`status:hooks`](/docs/commands/status.md#statushooks) | Print hook information of the linked site | ### [switch](/docs/commands/switch.md) Switch your active Netlify account ### [unlink](/docs/commands/unlink.md) Unlink a local folder from a Netlify site ### [watch](/docs/commands/watch.md) Watch for site deploy to finish ## Contributing See [CONTRIBUTING.md](CONTRIBUTING.md) for more info on how to make contributions to this project. ## Development You'll need to follow these steps to run Netlify CLI locally: uninstall any globally installed versions of netlify-cli clone and install deps for https://github.com/netlify/cli npm link from inside the cli folder Now you're both ready to start testing and to contribute to the project! ## License MIT. See [LICENSE](LICENSE) for more details. [npm-img]: https://img.shields.io/npm/v/netlify-cli.svg [npm]: https://npmjs.org/package/netlify-cli [azure-img]: https://dev.azure.com/netlify/Netlify%20CLI/_apis/build/status/netlify.cli?branchName=master [azure]: https://dev.azure.com/netlify/Netlify%20CLI/_build?definitionId=3 [travis-img]: https://img.shields.io/travis/netlify/cli/master.svg [travis]: https://travis-ci.org/netlify/cli [av-img]: https://ci.appveyor.com/api/projects/status/imk2qjc34ly7x11b/branch/master?svg=true [av]: https://ci.appveyor.com/project/netlify/cli [dl-img]: https://img.shields.io/npm/dm/netlify-cli.svg [dl]: https://npmjs.org/package/netlify-cli [coverage-img]: https://img.shields.io/coveralls/netlify/cli/master.svg [coverage]: https://coveralls.io/github/netlify/cli [david-img]: https://david-dm.org/netlify/cli/status.svg [david]: https://david-dm.org/netlify/cli [netlify-img]: https://api.netlify.com/api/v1/badges/d3807379-2dcf-4a43-9c00-e7e8d90ecf70/deploy-status [netlify]: https://app.netlify.com/sites/cli/deploys