Socket
Socket
Sign inDemoInstall

netlify-cli

Package Overview
Dependencies
Maintainers
18
Versions
1174
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

netlify-cli

Netlify command line tool


Version published
Maintainers
18
Created

What is netlify-cli?

The netlify-cli package is a command-line tool that allows you to interact with Netlify services. It provides functionalities for deploying sites, managing DNS, handling functions, and more, directly from your terminal.

What are netlify-cli's main functionalities?

Deploy a site

This command deploys the site located in the './build' directory to Netlify. It is useful for quickly pushing updates to your site.

netlify deploy --dir=./build

Login to Netlify

This command opens a browser window to authenticate your Netlify account. It is the first step to using other Netlify CLI commands that require authentication.

netlify login

Create a new site

This command creates a new site on Netlify with the specified name 'my-new-site'. It is useful for setting up new projects quickly.

netlify sites:create --name=my-new-site

Manage DNS records

This command adds a DNS record to your Netlify-managed domain. It is useful for configuring custom domains and subdomains.

netlify dns:add --name=subdomain --type=A --value=127.0.0.1

Invoke serverless functions

This command invokes a serverless function named 'my-function' deployed on Netlify. It is useful for testing and debugging serverless functions.

netlify functions:invoke my-function

Other packages similar to netlify-cli

Keywords

FAQs

Package last updated on 07 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc