← 返回命令列表

Linux command

netlify 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Login to Netlify

netlify login

Deploy current directory

netlify deploy

Production deploy

netlify deploy --prod

Create new site

netlify sites:create

Open site in browser

netlify open

View deploy logs

netlify watch

Link to existing site

netlify link

Run development server

netlify dev

说明

netlify is the Netlify CLI. It deploys and manages sites on Netlify platform. The tool handles deployments. Supports serverless functions and local development.

参数

login
Authenticate with Netlify.
deploy
Deploy site.
sites:create
Create new site.
open
Open in browser.
dev
Start dev server.
link
Link to site.
--help
Display help information.

FAQ

What is the netlify command used for?

netlify is the Netlify CLI. It deploys and manages sites on Netlify platform. The tool handles deployments. Supports serverless functions and local development.

How do I run a basic netlify example?

Run `netlify login` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does login do in netlify?

Authenticate with Netlify.